@matheusbsbs / matheus-bagliano / commits / 3e0a93a5bf
Fork 0

init_buffer(): Kill buf pointer

We don't need it, it's possible to assign the block of memory to bufp Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> Signed-off-by: Junio C Hamano <junkio@cox.net>

Luiz Fernando N. Capitulino committed Apr 25, 2007 at 11:18 UTC 3e0a93a5bf9fe10453599a94af8191f421ee3b16
1 file changed +1 -2
builtin-commit-tree.c
+1 -2
@@ -16,9 +16,8 @@
16 */
17 static void init_buffer(char **bufp, unsigned int *sizep)
18 {
19 - char *buf = xmalloc(BLOCKING);
19 + *bufp = xmalloc(BLOCKING);
20 *sizep = 0;
21 - *bufp = buf;
21 }
22
23 static void add_buffer(char **bufp, unsigned int *sizep, const char *fmt, ...)