mirror of
https://github.com/git/git.git
synced 2026-04-14 02:40:08 +02:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
27e27ee224
commit
f7445865f2
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user