summaryrefslogtreecommitdiff
path: root/builtin/reset.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2024-12-28 10:48:50 +0100
committerJunio C Hamano <gitster@pobox.com>2024-12-28 08:00:44 -0800
commite4981ed1e72d3f25da901b9415d2c4805bed0dbc (patch)
treebfd4661fe27c1992f25113b315ec427f296133b6 /builtin/reset.c
parent2cca185e85171c462166839cfd6ee57c09573160 (diff)
reftable: handle realloc error in parse_names()
Check the final reallocation for adding the terminating NULL and handle it just like those in the loop. Simply use REFTABLE_ALLOC_GROW instead of keeping the REFTABLE_REALLOC_ARRAY call and adding code to preserve the original pointer value around it. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/reset.c')
0 files changed, 0 insertions, 0 deletions