From: Jérémie Galarneau Date: Wed, 14 Jun 2017 22:13:31 +0000 (-0400) Subject: Fix: uninitialized return value in copy.c X-Git-Tag: v2.0.0-pre2~96 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=4552254a68798e90ea624f0612deba649f9061e2 Fix: uninitialized return value in copy.c Signed-off-by: Jérémie Galarneau --- diff --git a/plugins/lttng-utils/copy.c b/plugins/lttng-utils/copy.c index db828c42..668bd032 100644 --- a/plugins/lttng-utils/copy.c +++ b/plugins/lttng-utils/copy.c @@ -1901,7 +1901,7 @@ int set_event_clock_value(FILE *err, struct bt_ctf_event *event, { struct bt_ctf_clock_class *clock_class = NULL; struct bt_ctf_clock_value *clock_value = NULL; - int ret; + int ret = 0; clock_class = event_get_clock_class(err, event); if (!clock_class) {