Fix ctf_clock_declaration_visit returning an error when reading a boolean
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 22 Aug 2013 16:46:46 +0000 (12:46 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Feb 2014 16:56:13 +0000 (11:56 -0500)
The ret variable is used to read the "absolute" field's value and was
not reset to zero, thus returning an error whenever that value was TRUE.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/metadata/ctf-visitor-generate-io-struct.c

index 664d0af13f2c60faec9e63621c32e6e07cb7037c..c7de92e61d06eda45017d9313aeb05501b7bbdcf 100644 (file)
@@ -2399,6 +2399,7 @@ int ctf_clock_declaration_visit(FILE *fd, int depth, struct ctf_node *node,
                                goto error;
                        }
                        clock->absolute = ret;
+                       ret = 0;
                } else {
                        fprintf(fd, "[warning] %s: attribute \"%s\" is unknown in clock declaration.\n", __func__, left);
                }
This page took 0.025554 seconds and 4 git commands to generate.