Add structures
[babeltrace.git] / types / enum.c
index 8e8ef694fc4100c865dc0df5cfb7d211be9f90dc..57ecbdd179f484c771fea4b27d95ac597d14233a 100644 (file)
@@ -203,8 +203,8 @@ struct type_class_enum *enum_type_new(const char *name,
        int ret;
 
        enum_class = g_new(struct type_class_enum, 1);
-       enum_class->table.value_to_quark = g_hash_table(enum_val_hash,
-                                                       enum_val_equal);
+       enum_class->table.value_to_quark = g_hash_table_new(enum_val_hash,
+                                                           enum_val_equal);
        enum_class->table.quark_to_value = g_hash_table_new_full(g_direct_hash,
                                                        g_direct_equal,
                                                        NULL, enum_val_free);
This page took 0.022754 seconds and 4 git commands to generate.