From 4f5fb4c3d8752aae822ed0066784cc77e6f0f508 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Thu, 15 Mar 2018 16:16:58 -0400 Subject: [PATCH] Fix: ret is uninitialized on standard path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- src/bin/lttng-relayd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1