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
*/
static void init_buffer(char **bufp, unsigned int *sizep)
{
*/
static void init_buffer(char **bufp, unsigned int *sizep)
{
- char *buf = xmalloc(BLOCKING);
+ *bufp = xmalloc(BLOCKING);
*sizep = 0;
*sizep = 0;
- *bufp = buf;
}
static void add_buffer(char **bufp, unsigned int *sizep, const char *fmt, ...)
}
static void add_buffer(char **bufp, unsigned int *sizep, const char *fmt, ...)