diff options
author | David Kastrup <dak@gnu.org> | 2014-02-12 15:27:24 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-02-24 14:32:41 -0800 |
commit | 352bbbd9f24b39ae863ceb78170a2685d40e6416 (patch) | |
tree | dbc461fc747fdd39acace7d8a289c87e86167ff3 /compat/inet_pton.c | |
parent | builtin/blame.c::prepare_lines: fix allocation size of sb->lineno (diff) | |
download | tgif-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 'compat/inet_pton.c')
0 files changed, 0 insertions, 0 deletions