Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Makefile: introduce NO_PTHREADS
[gitweb.git]
/
builtin-fetch--tool.c
diff --git
a/builtin-fetch--tool.c
b/builtin-fetch--tool.c
index 7460ab7fce2a4e6a7e014f448819140e2204ccb7..469b07e240953aa21fd67eb2563e094a7f0f3d42 100644
(file)
--- a/
builtin-fetch--tool.c
+++ b/
builtin-fetch--tool.c
@@
-5,8
+5,7
@@
static char *get_stdin(void)
{
- struct strbuf buf;
- strbuf_init(&buf, 0);
+ struct strbuf buf = STRBUF_INIT;
if (strbuf_read(&buf, 0, 1024) < 0) {
die("error reading standard input: %s", strerror(errno));
}