X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf-text%2Ftypes%2Fenum.c;h=9043277d19b07b634cf33c522e0d117e8fcb6e43;hp=4a3eac0feecfb93e7f401b4abbf7bee8ada932ab;hb=d335f0f72a86c7cdcc18e524c74b82a51ad01b16;hpb=e4e9b4715098b1183895c8c09e97eff790a8cda7 diff --git a/formats/ctf-text/types/enum.c b/formats/ctf-text/types/enum.c index 4a3eac0f..9043277d 100644 --- a/formats/ctf-text/types/enum.c +++ b/formats/ctf-text/types/enum.c @@ -31,6 +31,9 @@ int ctf_text_enum_write(struct stream_pos *ppos, struct definition *definition) int i, ret; int field_nr_saved; + if (!print_field(definition)) + return 0; + if (pos->dummy) return 0;