X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Fenum.c;h=368c21a6910187dc8d6e9ce45dd80fc547b2757a;hp=4c2d2b7795013237a633c3333a176d553f2f93f6;hb=0f980a3595f61930659e392b1248c59490dd5a22;hpb=ff00cad2a14ea6dad073761b3dbb4aaa259723d0 diff --git a/types/enum.c b/types/enum.c index 4c2d2b77..368c21a6 100644 --- a/types/enum.c +++ b/types/enum.c @@ -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