X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fmetadata%2Fctf-visitor-xml.c;h=96145f8b73bf249d797218413ac80dcc942dd457;hp=d1c0751c51e3c8c548144c087cd1834c05d6fa52;hb=6743829ac9d7ae22c8bcc28b6ad162dd3d0b2104;hpb=0fbb34a5699c1dcb43d8e2b870390e7041465466 diff --git a/formats/ctf/metadata/ctf-visitor-xml.c b/formats/ctf/metadata/ctf-visitor-xml.c index d1c0751c..96145f8b 100644 --- a/formats/ctf/metadata/ctf-visitor-xml.c +++ b/formats/ctf/metadata/ctf-visitor-xml.c @@ -609,12 +609,9 @@ int ctf_visitor_print_xml(FILE *fd, int depth, struct ctf_node *node) if (node->u._enum.container_type) { print_tabs(fd, depth); fprintf(fd, "\n"); - } - - ret = ctf_visitor_print_xml(fd, depth + 1, node->u._enum.container_type); - if (ret) - return ret; - if (node->u._enum.container_type) { + ret = ctf_visitor_print_xml(fd, depth + 1, node->u._enum.container_type); + if (ret) + return ret; print_tabs(fd, depth); fprintf(fd, "\n"); }