Add enum {} default mapping to "int" type
[babeltrace.git] / formats / ctf / metadata / ctf-visitor-xml.c
index d1c0751c51e3c8c548144c087cd1834c05d6fa52..96145f8b73bf249d797218413ac80dcc942dd457 100644 (file)
@@ -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, "<container_type>\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, "</container_type>\n");
                }
This page took 0.026989 seconds and 4 git commands to generate.