summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2016-11-29 19:26:23 +0000
committerJosh Haberman <jhaberman@gmail.com>2016-11-29 19:26:23 +0000
commitff99b3f46b2a5b887745d1d396d33802a1c39060 (patch)
treed6f27f43b8549849181a89fad393489bc1ecc64d /tests
parent16ca9309b35ddadd103d1542818ea75f0a567c92 (diff)
Fixed some bugs surfaced by Travis.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_def.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_def.c b/tests/test_def.c
index 669aed0..93622c1 100644
--- a/tests/test_def.c
+++ b/tests/test_def.c
@@ -53,8 +53,9 @@ static upb_symtab *load_test_proto(void *owner) {
files_ptr = files;
while (*files_ptr) {
+ bool ok;
ASSERT(!upb_filedef_isfrozen(*files_ptr));
- bool ok = upb_symtab_addfile(s, *files_ptr, &status);
+ ok = upb_symtab_addfile(s, *files_ptr, &status);
ASSERT(ok);
ASSERT(upb_filedef_isfrozen(*files_ptr));
upb_filedef_unref(*files_ptr, &files);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback