Fix: uninitialized ret value used in set_debug_info_field
[babeltrace.git] / 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.023077 seconds and 4 git commands to generate.