diff options
Diffstat (limited to 'tests/tests.c')
-rw-r--r-- | tests/tests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tests.c b/tests/tests.c index 5df933c..e625f8a 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -222,9 +222,9 @@ static void test_get_f_uint32_t() } static void test_upb_context() { - struct upb_context c; - ASSERT(upb_context_init(&c)); - upb_context_unref(&c); + struct upb_context *c = upb_context_new(); + ASSERT(c); + upb_context_unref(c); } int main() |