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:
parent
79dbbedd78
commit
3e0a93a5bf
@ -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…
Reference in New Issue
Block a user