Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Fix bogus use of printf in t3700 test
[gitweb.git]
/
builtin-commit-tree.c
diff --git
a/builtin-commit-tree.c
b/builtin-commit-tree.c
index 4a8d8d8b674c6f272243a074030af289403eadde..ccbcbe30dab634d9ff393f1e849c18388b9d53d4 100644
(file)
--- a/
builtin-commit-tree.c
+++ b/
builtin-commit-tree.c
@@
-16,9
+16,8
@@
*/
static void init_buffer(char **bufp, unsigned int *sizep)
{
-
char *buf
= xmalloc(BLOCKING);
+
*bufp
= xmalloc(BLOCKING);
*sizep = 0;
- *bufp = buf;
}
static void add_buffer(char **bufp, unsigned int *sizep, const char *fmt, ...)