summaryrefslogtreecommitdiff
path: root/upb/symtab.c
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2014-12-12 15:22:55 -0800
committerJoshua Haberman <jhaberman@gmail.com>2014-12-12 15:22:55 -0800
commitefffb86a5ceb7e5ca4c96b2061744958e455192e (patch)
tree2b51257e4b9cebfc3640d98cda45f9b8be36fdb2 /upb/symtab.c
parent56913be6bb57f81dbbf7baf9cc9a0a2cd1a36493 (diff)
parentb3f6daf83d8adf0040a1bf9401342c811502f690 (diff)
Merge pull request #8 from cfallin/master
Amalgamated distribution (upb.c/upb.h) tool.
Diffstat (limited to 'upb/symtab.c')
-rw-r--r--upb/symtab.c2
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);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback