Fix: uninitialized ret value used in set_debug_info_field
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:31:40 +0000 (14:31 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:45 +0000 (12:57 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/lttng-utils/copy.c

index 33edc153b7a1743106d0fe3d75bfec1bf167755c..68ea1237803f1d49e546f3d2fa6a899b66fe3a34 100644 (file)
@@ -1149,7 +1149,7 @@ int set_debug_info_field(FILE *err, struct bt_ctf_field *debug_field,
                struct debug_info_source *dbg_info_src,
                struct debug_info_component *component)
 {
-       int i, nr_fields, ret;
+       int i, nr_fields, ret = 0;
        struct bt_ctf_field_type *debug_field_type = NULL;
        struct bt_ctf_field *field = NULL;
        struct bt_ctf_field_type *field_type = NULL;
This page took 0.024975 seconds and 4 git commands to generate.