summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-03-14 14:44:38 -0700
committerJunio C Hamano <gitster@pobox.com>2018-03-14 14:44:38 -0700
commit2833c6431f1185c274341d9c8d26915c8d8506d5 (patch)
tree399e100a16e20b615bc295123c1b4f7c04623cdc
parent626d3d33cb1a0ff93f14f473be8b7a1d7d4eb5ee (diff)
downloadgit-ds/commit-graph.tar.gz
SQUASH??? sparse fixesds/commit-graph
-rw-r--r--builtin/commit-graph.c2
-rw-r--r--commit-graph.c2
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)
{