From 2833c6431f1185c274341d9c8d26915c8d8506d5 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 14 Mar 2018 14:44:38 -0700 Subject: SQUASH??? sparse fixes --- builtin/commit-graph.c | 2 +- commit-graph.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/commit-graph.c b/builtin/commit-graph.c index 62ac26e444..855df66bd6 100644 --- a/builtin/commit-graph.c +++ b/builtin/commit-graph.c @@ -31,7 +31,7 @@ static struct opts_commit_graph { static int graph_read(int argc, const char **argv) { - struct commit_graph *graph = 0; + struct commit_graph *graph = NULL; char *graph_name; static struct option builtin_commit_graph_read_options[] = { diff --git a/commit-graph.c b/commit-graph.c index 6a4fb77b42..a3cd1e5450 100644 --- a/commit-graph.c +++ b/commit-graph.c @@ -182,7 +182,7 @@ cleanup_fail: } /* global storage */ -struct commit_graph *commit_graph = NULL; +static struct commit_graph *commit_graph = NULL; static void prepare_commit_graph_one(const char *obj_dir) { -- cgit v1.2.1