diff --git a/builtin-fetch--tool.c b/builtin-fetch--tool.c
index 349b59c25865fb8ea3946c4176cc2aa08869af1e..1e43d792216248c1abe3504c239ccd325f8d5ef1 100644 (file)
--- a/builtin-fetch--tool.c
+++ b/builtin-fetch--tool.c
if (strbuf_read(&buf, 0, 1024) < 0) {
die("error reading standard input: %s", strerror(errno));
}
- return strbuf_detach(&buf);
+ return strbuf_detach(&buf, NULL);
}
static void show_new(enum object_type type, unsigned char *sha1_new)