fixed link in documentation of diff-options
[gitweb.git] / builtin-commit-tree.c
index 4a8d8d8b674c6f272243a074030af289403eadde..ccbcbe30dab634d9ff393f1e849c18388b9d53d4 100644 (file)
@@ -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, ...)