{"thread":{"id":"41456","subject":"[PATCH] submodule: don't use an integer as a NULL pointer","startedAt":"2016-02-21T17:27:12Z","lastAt":"2016-02-21T17:27:12Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"278754","messageId":"56C9F370.3020802@ramsayjones.plus.com","threadId":"41456","inReplyTo":null,"subject":"[PATCH] submodule: don't use an integer as a NULL pointer","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsayjones.plus.com","sentAt":"2016-02-21T17:27:12Z","receivedAt":"2016-02-21T17:27:12Z","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 Stefan,\n\nIf you need to re-roll your 'sb/submodule-init' branch, could\nyou please squash this into the relevant patch.\n\nThanks!\n\nATB,\nRamsay Jones\n\n submodule.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/submodule.c b/submodule.c\nindex 30c393b..ccafd45 100644\n--- a/submodule.c\n+++ b/submodule.c\n@@ -253,7 +253,7 @@ const char *submodule_strategy_to_string(const struct submodule_update_strategy\n \t\treturn NULL;\n \tcase SM_UPDATE_COMMAND:\n \t\tstrbuf_addf(&sb, \"!%s\", s->command);\n-\t\treturn strbuf_detach(&sb, 0);\n+\t\treturn strbuf_detach(&sb, NULL);\n \t}\n \treturn NULL;\n }\n-- \n2.7.0\n"}]}