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.11.0-rc3~49 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=096214685c03d107ee01ecb0dbd36186f1ec8dda;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;