diff options
Diffstat (limited to 'tests/test_def.c')
-rw-r--r-- | tests/test_def.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_def.c b/tests/test_def.c index 9859ca0..76914c7 100644 --- a/tests/test_def.c +++ b/tests/test_def.c @@ -220,6 +220,7 @@ static void test_replacement_fails() { newdefs[1] = upb_msgdef_upcast_mutable(m2); ok = upb_symtab_add(s, newdefs, 2, &s, &status); ASSERT(ok == false); + upb_status_clear(&status); /* Adding just one is ok. */ ASSERT_STATUS(upb_symtab_add(s, newdefs, 1, &s, &status), &status); |