Start packet mmap work
[babeltrace.git] / types / enum.c
index 4c2d2b7795013237a633c3333a176d553f2f93f6..368c21a6910187dc8d6e9ce45dd80fc547b2757a 100644 (file)
@@ -371,7 +371,8 @@ void enum_copy(struct stream_pos *dest, const struct format *fdest,
         * now to test enum read and write code.
         */
        v = g_array_index(array, GQuark, 0);
-       return fdest->enum_write(dest, enum_declaration, v);
+       if (fdest)
+               fdest->enum_write(dest, enum_declaration, v);
 }
 
 static
This page took 0.022788 seconds and 4 git commands to generate.