@matheusbsbs / matheus-bagliano / commits / 67da52bedc
Fork 0

janitor: use NULL and not 0 for pointers.

Brought to you thanks to coccinelle: ---8<---- @@ expression *E; @@ ( E == - 0 + NULL | E != - 0 + NULL | E = - 0 + NULL ) @@ identifier f; type T; @@ T *f(...) { <... - return 0; + return NULL; ...> } --->8---- There are a lot more hits in compat/nedmallox and compat/regex but these are borrowed code we rather do not want to maintain our own forks for, and this patch refrains from touching them. Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Pierre Habouzit committed Jul 22, 2009 at 23:34 UTC 67da52bedc5750c10a732b9da7d64d5ef73f3b8a
1 file changed +1 -1
graph.c
+1 -1
@@ -893,7 +893,7 @@ static struct column *find_new_column_by_commit(struct git_graph *graph,
893 if (graph->new_columns[i].commit == commit)
894 return &graph->new_columns[i];
895 }
896 - return 0;
896 + return NULL;
897 }
898
899 static void graph_output_post_merge_line(struct git_graph *graph, struct strbuf *sb)