Skip to content

Commit 67da52b

Browse files
MadCodergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5207079 commit 67da52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ static struct column *find_new_column_by_commit(struct git_graph *graph,
893893
if (graph->new_columns[i].commit == commit)
894894
return &graph->new_columns[i];
895895
}
896-
return 0;
896+
return NULL;
897897
}
898898

899899
static void graph_output_post_merge_line(struct git_graph *graph, struct strbuf *sb)

0 commit comments

Comments
 (0)