Thread (3 messages) 3 messages, 3 authors, 2018-02-26

Re: [PATCH] commit-graph: fix some "plain integer as NULL pointer" warnings

flat view

From: René Scharfe <hidden>
Date: 2018-02-24 05:43:19

Am 24.02.2018 um 03:24 schrieb Ramsay Jones:
quoted hunk ↗ jump to hunk
diff --git a/commit-graph.c b/commit-graph.c
index fc5ee7e99..c2f443436 100644
--- a/commit-graph.c
+++ b/commit-graph.c
@@ -45,7 +45,7 @@ char *get_graph_latest_filename(const char *obj_dir)
  {
  	struct strbuf fname = STRBUF_INIT;
  	strbuf_addf(&fname, "%s/info/graph-latest", obj_dir);
-	return strbuf_detach(&fname, 0);
+	return strbuf_detach(&fname, NULL);
  }
You could also replace that function body with:

	return xstrfmt("%s/info/graph-latest", obj_dir);

René
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help