Files
git/refs.c
Johannes Schindelin 5b82c4d7b5 Do not use invalid reference to the heap
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>
2010-06-12 13:09:33 +02:00

44 KiB