diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2022-01-20 15:12:03 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-20 11:31:52 -0800 |
commit | f7445865f260474082c8276dc2175ec23109c424 (patch) | |
tree | 436023842857479e80b04377bdc0f2c04145756f /reftable | |
parent | 27e27ee2249f617b529ac5c9c419d3961885994b (diff) | |
download | git-f7445865f260474082c8276dc2175ec23109c424.tar.gz |
reftable: check reftable_stack_auto_compact() return value
Fixes a problem detected by Coverity.
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable')
-rw-r--r-- | reftable/stack_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/reftable/stack_test.c b/reftable/stack_test.c index eb0b7228b0..d628420e63 100644 --- a/reftable/stack_test.c +++ b/reftable/stack_test.c @@ -814,6 +814,7 @@ static void test_reftable_stack_auto_compaction(void) EXPECT_ERR(err); err = reftable_stack_auto_compact(st); + EXPECT_ERR(err); EXPECT(i < 3 || st->merged->stack_len < 2 * fastlog2(i)); } |