Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@google.com>2022-01-20 18:12:03 +0300
committerJunio C Hamano <gitster@pobox.com>2022-01-20 22:31:52 +0300
commitf7445865f260474082c8276dc2175ec23109c424 (patch)
tree436023842857479e80b04377bdc0f2c04145756f /reftable
parent27e27ee2249f617b529ac5c9c419d3961885994b (diff)
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.c1
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));
}