mirror of
https://github.com/git/git.git
synced 2026-03-31 12:00:09 +02:00
One should never return from a function the address of data allocated on the heap in that function, because with the end of that function, the address range is freed for other purposes. Work around the thinko by making the buffer static. This is far from ideal, but a work-around. This fixes a regression introduced in 859c301(refs: split log_ref_write logic into log_ref_setup). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
44 KiB
44 KiB