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>
This commit is contained in:
Luiz Fernando N. Capitulino 2007-04-25 11:18:41 -03:00 committed by Junio C Hamano
parent 79dbbedd78
commit 3e0a93a5bf

View File

@ -16,9 +16,8 @@
*/ */
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, ...)