From 2afcfbfbee8483616dcf28b330326431bb57bc7c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sat, 27 May 2017 14:31:40 -0400 Subject: [PATCH] Fix: uninitialized ret value used in set_debug_info_field MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- plugins/lttng-utils/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/lttng-utils/copy.c b/plugins/lttng-utils/copy.c index 33edc153..68ea1237 100644 --- a/plugins/lttng-utils/copy.c +++ b/plugins/lttng-utils/copy.c @@ -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; -- 2.34.1