Browse Source

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>
maint
Luiz Fernando N. Capitulino 18 years ago committed by Junio C Hamano
parent
commit
3e0a93a5bf
  1. 3
      builtin-commit-tree.c

3
builtin-commit-tree.c

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

Loading…
Cancel
Save