{"thread":{"id":"44867","subject":"[PATCH] worktree: fix an 'using plain integer as NULL pointer' warning","startedAt":"2017-01-12T23:18:27Z","lastAt":"2017-01-12T23:18:27Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"309304","messageId":"7b28631d-77c1-b8a0-c671-307b9bef33ad@ramsayjones.plus.com","threadId":"44867","inReplyTo":null,"subject":"[PATCH] worktree: fix an 'using plain integer as NULL pointer' warning","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsayjones.plus.com","sentAt":"2017-01-12T23:18:18Z","receivedAt":"2017-01-12T23:18:27Z","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/worktree-move' branch, could you\nplease squash this into the relevant patch. (commit 62985f75c1\n\"worktree move: refuse to move worktrees with submodules\", 08-01-2017).\n\n[BTW, this is a sparse warning, just in case you were wondering!]\n\nThanks!\n\nATB,\nRamsay Jones\n\n builtin/worktree.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/builtin/worktree.c b/builtin/worktree.c\nindex 339c622e2..a1c91f154 100644\n--- a/builtin/worktree.c\n+++ b/builtin/worktree.c\n@@ -528,7 +528,7 @@ static int unlock_worktree(int ac, const char **av, const char *prefix)\n \n static void validate_no_submodules(const struct worktree *wt)\n {\n-\tstruct index_state istate = {0};\n+\tstruct index_state istate = { NULL };\n \tint i, found_submodules = 0;\n \n \tif (read_index_from(&istate, worktree_git_path(wt, \"index\")) > 0) {\n-- \n2.11.0\n"}]}