diff options
Diffstat (limited to 'upb/symtab.c')
-rw-r--r-- | upb/symtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/symtab.c b/upb/symtab.c index 2f2b444..f172aaa 100644 --- a/upb/symtab.c +++ b/upb/symtab.c @@ -43,9 +43,9 @@ static void upb_symtab_free(upb_refcounted *r) { free(s); } -static const struct upb_refcounted_vtbl vtbl = {NULL, &upb_symtab_free}; upb_symtab *upb_symtab_new(const void *owner) { + static const struct upb_refcounted_vtbl vtbl = {NULL, &upb_symtab_free}; upb_symtab *s = malloc(sizeof(*s)); upb_refcounted_init(UPB_UPCAST(s), &vtbl, owner); upb_strtable_init(&s->symtab, UPB_CTYPE_PTR); |