Skip to content

Commit f744586

Browse files
hanwengitster
authored andcommitted
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>
1 parent 27e27ee commit f744586

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

reftable/stack_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,7 @@ static void test_reftable_stack_auto_compaction(void)
814814
EXPECT_ERR(err);
815815

816816
err = reftable_stack_auto_compact(st);
817+
EXPECT_ERR(err);
817818
EXPECT(i < 3 || st->merged->stack_len < 2 * fastlog2(i));
818819
}
819820

0 commit comments

Comments
 (0)