Fix: ret is uninitialized on standard path
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 15 Mar 2018 20:16:58 +0000 (16:16 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 16 Mar 2018 02:21:20 +0000 (22:21 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c

index a57b1d4b063e2d02f200fcd07f860276b1d6ae64..45b7de8c657f9b43a426057fc07f7a299689dc75 100644 (file)
@@ -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;
This page took 0.0262 seconds and 4 git commands to generate.