Keep byte order field mask set upon retry
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 26 Jul 2011 00:19:36 +0000 (20:19 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 26 Jul 2011 00:19:36 +0000 (20:19 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/metadata/ctf-visitor-generate-io-struct.c

index 2eba30bd46d3475cf9a2c74e679646bba7fef119..1947aa5e931b4602bb772d7b5183df1668b67e12 100644 (file)
@@ -1905,7 +1905,10 @@ int ctf_trace_declaration_visit(FILE *fd, int depth, struct ctf_node *node, stru
                                         * construction of the
                                         * intermediate representation.
                                         */
-                                       return -EINTR;
+                                       trace->field_mask = 0;
+                                       CTF_TRACE_SET_FIELD(trace, byte_order);
+                                       ret = -EINTR;
+                                       goto error;
                                }
                        }
                        CTF_TRACE_SET_FIELD(trace, byte_order);
@@ -2004,7 +2007,6 @@ error:
        trace->declaration_scope = NULL;
        /* byte order changed while creating types, retry. */
        if (ret == -EINTR) {
-               trace->field_mask = 0;
                goto restart;
        }
        return ret;
This page took 0.024964 seconds and 4 git commands to generate.