diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-08-15 20:53:39 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-08-15 20:53:39 -0700 |
commit | 7fa19a3f958c9a2ed7387cb373f0aa7bba707922 (patch) | |
tree | 8007ac449505db49a78da002bcdbd263e264bc12 /tests | |
parent | 71d82d06d17f0205ccf5bb72ea11d3fd3e9eb363 (diff) |
Finish upb_context thread-safety.
Diffstat (limited to 'tests')
-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() |