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-Url: http://drtracing.org/?a=commitdiff_plain;h=1081db08e46cc432026fdf104fa7c130f8a1c72e;p=deliverable%2Fbabeltrace.git 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 db828c42e..668bd0321 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) {