X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-commit-tree.c;h=ccbcbe30dab634d9ff393f1e849c18388b9d53d4;hb=8391c60b6e08604e7023a8fff74350d6b35974af;hp=4a8d8d8b674c6f272243a074030af289403eadde;hpb=53a58245863eff3d70aaa3ac75d7d57e843fc91d;p=git.git diff --git a/builtin-commit-tree.c b/builtin-commit-tree.c index 4a8d8d8b6..ccbcbe30d 100644 --- 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, ...)