{"thread":{"id":"45772","subject":"[PATCH] worktree: fix an 'Using integer as a NULL pointer' warning","startedAt":"2017-04-22T00:55:19Z","lastAt":"2017-04-22T00:55:19Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"317528","messageId":"d0e81b1e-5869-299e-f462-4d43dc997bd1@ramsayjones.plus.com","threadId":"45772","inReplyTo":null,"subject":"[PATCH] worktree: fix an 'Using integer as a NULL pointer' warning","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsayjones.plus.com","sentAt":"2017-04-22T00:55:08Z","receivedAt":"2017-04-22T00:55:19Z","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 please\nsquash this into the relevant patch (commit 8a1dc92e91 (\"worktree move:\nrefuse to move worktrees with submodules\", 20-04-2017)).\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 ff9ccb57f..c54abd5b8 100644\n--- a/builtin/worktree.c\n+++ b/builtin/worktree.c\n@@ -534,7 +534,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.12.0\n"}]}