summaryrefslogtreecommitdiff
path: root/combine-diff.c
diff options
context:
space:
mode:
authorLibravatar Thomas Rast <tr@thomasrast.ch>2013-12-01 21:41:55 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-12-02 12:46:01 -0800
commitcde0a0576c8950599ef11184bc35aea648f7e717 (patch)
tree53c952281c26148e9ff58d738d7ed01e293567a6 /combine-diff.c
parentcommit-slab: declare functions "static inline" (diff)
downloadtgif-cde0a0576c8950599ef11184bc35aea648f7e717.tar.xz
commit-slab: sizeof() the right type in xrealloc
When allocating the slab, the code accidentally computed the array size from s->slab (an elemtype**). The slab is an array of elemtype*, however, so we should take the size of *s->slab. Noticed-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Thomas Rast <tr@thomasrast.ch> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'combine-diff.c')
0 files changed, 0 insertions, 0 deletions