summaryrefslogtreecommitdiff
path: root/t/t1402-check-ref-format.sh
diff options
context:
space:
mode:
authorLibravatar David Kastrup <dak@gnu.org>2014-02-12 15:27:24 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-02-24 14:32:41 -0800
commit352bbbd9f24b39ae863ceb78170a2685d40e6416 (patch)
treedbc461fc747fdd39acace7d8a289c87e86167ff3 /t/t1402-check-ref-format.sh
parentbuiltin/blame.c::prepare_lines: fix allocation size of sb->lineno (diff)
downloadtgif-352bbbd9f24b39ae863ceb78170a2685d40e6416.tar.xz
blame.c: prepare_lines should not call xrealloc for every line
Making a single preparation run for counting the lines will avoid memory fragmentation. Also, fix the allocated memory size which was wrong when sizeof(int *) != sizeof(int), and would have been too small for sizeof(int *) < sizeof(int), admittedly unlikely. Signed-off-by: David Kastrup <dak@gnu.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1402-check-ref-format.sh')
0 files changed, 0 insertions, 0 deletions