X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf-text%2Ftypes%2Fstruct.c;h=cc36fde9e2f5aff0177db425bd3ba6c5992de815;hb=bc7eb6c8e743cd6ae2c653fc957d19dfaf3fc200;hp=3a69994fae5746ebcec45c81abc88dfcedfa870c;hpb=596dd032fb31985bd7856efcd6ee3dc133479cec;p=babeltrace.git diff --git a/formats/ctf-text/types/struct.c b/formats/ctf-text/types/struct.c index 3a69994f..cc36fde9 100644 --- a/formats/ctf-text/types/struct.c +++ b/formats/ctf-text/types/struct.c @@ -29,6 +29,9 @@ int ctf_text_struct_write(struct stream_pos *ppos, struct definition *definition int field_nr_saved; int ret; + if (!print_field(definition)) + return 0; + if (!pos->dummy) { if (pos->depth >= 0) { if (pos->field_nr++ != 0)