Fix: uninitialized variable returned by relay_rotate_session_streams
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 21 Aug 2019 22:24:12 +0000 (15:24 -0700)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 21 Aug 2019 22:26:24 +0000 (15:26 -0700)
`ret` can be returned uninitialized when relay_rotate_session_streams
succeeds. Initialize it to 0 on the successful code path.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c

index 1cbebdcf23ca4f9f901ea7855b3d3543fcc10da2..8fe3dd96deabe322f7e634bbd51aa78ffcfd70d0 100644 (file)
@@ -2252,6 +2252,7 @@ end:
                ret = -1;
        }
 
+       ret = 0;
 end_no_reply:
        lttng_trace_chunk_put(next_trace_chunk);
        return ret;
This page took 0.027255 seconds and 4 git commands to generate.