Build fix
[babeltrace.git] / types / string.c
index 4d57914112fe3a7aceeed0abda1621168e8d22f5..f81c1a7e62904ecb8339986181b50cd93d60da58 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <babeltrace/compiler.h>
 #include <babeltrace/align.h>
-#include <babeltrace/types.h>
+#include <babeltrace/format.h>
 
 void string_copy(struct stream_pos *dest, const struct format *fdest, 
                 struct stream_pos *src, const struct format *fsrc,
@@ -60,6 +60,7 @@ struct type_class_string *string_type_new(const char *name)
        string_class->p.alignment = CHAR_BIT;
        string_class->p.copy = string_copy;
        string_class->p.free = _string_type_free;
+       string_class->p.ref = 1;
        if (string_class->p.name) {
                ret = ctf_register_type(&string_class->p);
                if (ret) {
This page took 0.022368 seconds and 4 git commands to generate.