Fix ctf_clock_declaration_visit returning an error when reading a boolean
[babeltrace.git] / formats / ctf / metadata / ctf-visitor-generate-io-struct.c
index c32aa990fc23b952f9e5c827532796e1d22c28d1..559e97ecdf65b778034dbf28914036f79003b90d 100644 (file)
@@ -2364,6 +2364,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.0371 seconds and 4 git commands to generate.