{"thread":{"id":"45433","subject":"[PATCH] revision.c: fix an 'Using integer as NULL pointer' warning","startedAt":"2017-03-19T21:13:10Z","lastAt":"2017-03-19T21:13:10Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"314609","messageId":"b465515a-5868-a614-ff99-490f4c86aa69@ramsayjones.plus.com","threadId":"45433","inReplyTo":null,"subject":"[PATCH] revision.c: fix an 'Using integer as NULL pointer' warning","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsayjones.plus.com","sentAt":"2017-03-19T21:11:51Z","receivedAt":"2017-03-19T21:13:10Z","isPatch":true,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"\nSigned-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>\n---\n\nHi Duy,\n\nIf you need to re-roll your 'nd/prune-in-worktree' branch, could you please\nsquash this into the relevant patch (commit 0a30ae48bb, \"revision.c:\n--indexed-objects add objects from all worktrees\", 18-03-2017).\n\nThanks!\n\nATB,\nRamsay Jones\n\n revision.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/revision.c b/revision.c\nindex e01e2f99c..a06b150f7 100644\n--- a/revision.c\n+++ b/revision.c\n@@ -1336,7 +1336,7 @@ void add_index_objects_to_pending(struct rev_info *revs, unsigned int flags)\n \tworktrees = get_worktrees(0);\n \tfor (p = worktrees; *p; p++) {\n \t\tstruct worktree *wt = *p;\n-\t\tstruct index_state istate = {0};\n+\t\tstruct index_state istate = { NULL };\n \n \t\tif (wt->is_current)\n \t\t\tcontinue; /* current index already taken care of */\n-- \n2.12.0\n"}]}