{"thread":{"id":"7837","subject":"[PATCH 5/5] init_buffer(): Kill buf pointer","startedAt":"2007-04-25T14:18:41Z","lastAt":"2007-04-25T14:18:41Z","messageCount":1,"participants":["Luiz Fernando N. Capitulino"],"isPatch":true,"patchVersion":1,"patchTotal":5},"messages":[{"id":"40406","messageId":"20070425111841.2c491281@localhost","threadId":"7837","inReplyTo":null,"subject":"[PATCH 5/5] init_buffer(): Kill buf pointer","fromName":"Luiz Fernando N. Capitulino","fromEmail":"lcapitulino@mandriva.com.br","sentAt":"2007-04-25T14:18:41Z","receivedAt":"2007-04-25T14:18:41Z","isPatch":true,"sender":{"key":"lcapitulino@mandriva.com.br","avatar":null},"body":"We don't need it, it's possible to assign the block of memory to bufp\n\nSigned-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>\n---\n builtin-commit-tree.c |    3 +--\n 1 files changed, 1 insertions(+), 2 deletions(-)\n\ndiff --git a/builtin-commit-tree.c b/builtin-commit-tree.c\nindex 4a8d8d8..ccbcbe3 100644\n--- a/builtin-commit-tree.c\n+++ b/builtin-commit-tree.c\n@@ -16,9 +16,8 @@\n  */\n static void init_buffer(char **bufp, unsigned int *sizep)\n {\n-\tchar *buf = xmalloc(BLOCKING);\n+\t*bufp = xmalloc(BLOCKING);\n \t*sizep = 0;\n-\t*bufp = buf;\n }\n \n static void add_buffer(char **bufp, unsigned int *sizep, const char *fmt, ...)\n-- \n1.5.1.1.320.g1cf2\n"}]}