author | Thomas Rast <trast@student.ethz.ch> | |
Thu, 10 Jun 2010 12:54:03 +0000 (14:54 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 12 Jun 2010 16:34:17 +0000 (09:34 -0700) | ||
commit | 157aaea5fff7dbf2fc39829d827b35df647562a4 | |
tree | 71edb7de89dc8740a4e00ad1d758a4abb9b6a1e3 | tree | snapshot |
parent | 86e8e7a566c5546e58f56566d0181a08d60f919f | commit | diff |
log_ref_setup: don't return stack-allocated array
859c301 (refs: split log_ref_write logic into log_ref_setup,
2010-05-21) refactors the stack allocation of the log_file array into
the new log_ref_setup() function, but passes it back to the caller.
Since the original intent seems to have been to split the work between
log_ref_setup and log_ref_write, make it the caller's responsibility
to allocate the buffer.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
859c301 (refs: split log_ref_write logic into log_ref_setup,
2010-05-21) refactors the stack allocation of the log_file array into
the new log_ref_setup() function, but passes it back to the caller.
Since the original intent seems to have been to split the work between
log_ref_setup and log_ref_write, make it the caller's responsibility
to allocate the buffer.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c | diff | blob | history | |
refs.c | diff | blob | history | |
refs.h | diff | blob | history |