aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Habouzit <madcoder@debian.org>2009-07-22 23:34:33 +0200
committerJunio C Hamano <gitster@pobox.com>2009-07-22 21:57:41 -0700
commit67da52bedc5750c10a732b9da7d64d5ef73f3b8a (patch)
tree604777365db59943683c29c7c13ba7aa78011f8a
parent520707905388e293a482066599a1c181ef32f2f0 (diff)
downloadgit-67da52bedc5750c10a732b9da7d64d5ef73f3b8a.tar.gz
git-67da52bedc5750c10a732b9da7d64d5ef73f3b8a.tar.xz
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>
-rw-r--r--graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/graph.c b/graph.c
index f8d7a5c0f..e46677020 100644
--- a/graph.c
+++ b/graph.c
@@ -893,7 +893,7 @@ static struct column *find_new_column_by_commit(struct git_graph *graph,
if (graph->new_columns[i].commit == commit)
return &graph->new_columns[i];
}
- return 0;
+ return NULL;
}
static void graph_output_post_merge_line(struct git_graph *graph, struct strbuf *sb)