зеркало из https://github.com/microsoft/git.git
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:
Родитель
79dbbedd78
Коммит
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, ...)
|
||||
|
|
Загрузка…
Ссылка в новой задаче