From: Jonathan Rajotte Date: Thu, 15 Mar 2018 20:16:58 +0000 (-0400) Subject: Fix: ret is uninitialized on standard path X-Git-Tag: v2.11.0-rc1~346 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4f5fb4c3d8752aae822ed0066784cc77e6f0f508;p=lttng-tools.git Fix: ret is uninitialized on standard path Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index a57b1d4b0..45b7de8c6 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -2806,7 +2806,7 @@ int relay_rotate_pending(struct lttcomm_relayd_hdr *recv_hdr, struct lttcomm_relayd_generic_reply reply; struct lttng_ht_iter iter; struct relay_stream *stream; - int ret; + int ret = 0; ssize_t network_ret; uint64_t chunk_id; bool rotate_pending = false;