From 7fa19a3f958c9a2ed7387cb373f0aa7bba707922 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 15 Aug 2009 20:53:39 -0700 Subject: Finish upb_context thread-safety. --- tests/tests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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() -- cgit v1.2.3