From: Mathieu Desnoyers Date: Tue, 13 Aug 2019 20:38:47 +0000 (-0400) Subject: Fix: relay: relay_rotate_session_streams uninitialized return value X-Git-Tag: v2.12.0-rc1~481 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=30b9d5ab8a79cfa37c4be6b5bf3193e2a8501bb8;p=lttng-tools.git Fix: relay: relay_rotate_session_streams uninitialized return value Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 8fe3dd96d..9589b6f52 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -2117,7 +2117,7 @@ static int relay_rotate_session_streams( struct relay_connection *conn, const struct lttng_buffer_view *payload) { - int ret; + int ret = 0; uint32_t i; ssize_t send_ret; enum lttng_error_code reply_code = LTTNG_ERR_UNK;