{"thread":{"id":"48593","subject":"[PATCH] commit-graph: fix a sparse 'integer as NULL pointer' warning","startedAt":"2018-05-29T20:01:55Z","lastAt":"2018-05-30T00:58:00Z","messageCount":2,"participants":["Ramsay Jones","Derrick Stolee"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"348718","messageId":"b22d20c2-f084-1727-cb98-06707e874ef1@ramsayjones.plus.com","threadId":"48593","inReplyTo":null,"subject":"[PATCH] commit-graph: fix a sparse 'integer as NULL pointer' warning","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsayjones.plus.com","sentAt":"2018-05-29T20:01:48Z","receivedAt":"2018-05-29T20:01:55Z","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 Derrick,\n\nIf you need to re-roll your 'ds/commit-graph-fsck' branch (pu@a84e06bc0f),\ncould you please squash this into the relevant patch (commit 80453b4529,\n\"commit-graph: add 'verify' subcommand\", 2018-05-24).\n\n[No, No, that was the one in graph_read(). :-D ]\n\nThanks!\n\nATB,\nRamsay Jones\n\n builtin/commit-graph.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/builtin/commit-graph.c b/builtin/commit-graph.c\nindex 20ce6437a..6abfde5e6 100644\n--- a/builtin/commit-graph.c\n+++ b/builtin/commit-graph.c\n@@ -39,7 +39,7 @@ static struct opts_commit_graph {\n \n static int graph_verify(int argc, const char **argv)\n {\n-\tstruct commit_graph *graph = 0;\n+\tstruct commit_graph *graph = NULL;\n \tchar *graph_name;\n \n \tstatic struct option builtin_commit_graph_verify_options[] = {\n-- \n2.17.0\n"},{"id":"348768","messageId":"ba3b8e06-b5e1-99a1-0fe4-ff97d6da8f15@gmail.com","threadId":"48593","inReplyTo":"b22d20c2-f084-1727-cb98-06707e874ef1@ramsayjones.plus.com","subject":"Re: [PATCH] commit-graph: fix a sparse 'integer as NULL pointer' warning","fromName":"Derrick Stolee","fromEmail":"stolee@gmail.com","sentAt":"2018-05-30T00:57:54Z","receivedAt":"2018-05-30T00:58:00Z","isPatch":true,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"n 5/29/2018 4:01 PM, Ramsay Jones wrote:\n> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>\n> ---\n>\n> Hi Derrick,\n>\n> If you need to re-roll your 'ds/commit-graph-fsck' branch (pu@a84e06bc0f),\n> could you please squash this into the relevant patch (commit 80453b4529,\n> \"commit-graph: add 'verify' subcommand\", 2018-05-24).\n>\n> [No, No, that was the one in graph_read(). :-D ]\n\nThanks for helping rid me of my bad habits! I'll get this one in v4.\n\n>\n> Thanks!\n>\n> ATB,\n> Ramsay Jones\n>\n>   builtin/commit-graph.c | 2 +-\n>   1 file changed, 1 insertion(+), 1 deletion(-)\n>\n> diff --git a/builtin/commit-graph.c b/builtin/commit-graph.c\n> index 20ce6437a..6abfde5e6 100644\n> --- a/builtin/commit-graph.c\n> +++ b/builtin/commit-graph.c\n> @@ -39,7 +39,7 @@ static struct opts_commit_graph {\n>   \n>   static int graph_verify(int argc, const char **argv)\n>   {\n> -\tstruct commit_graph *graph = 0;\n> +\tstruct commit_graph *graph = NULL;\n>   \tchar *graph_name;\n>   \n>   \tstatic struct option builtin_commit_graph_verify_options[] = {\n"}]}