Fix: uninitialized variable may be used in local rotation check
[lttng-tools.git] / src / bin / lttng-sessiond / rotation-thread.c
index 2dfd9735741b7f12111a5af45e6dee346bf631dd..3747ebae7fe337713c1758ad08fe2b8c1c775f10 100644 (file)
@@ -394,7 +394,7 @@ int check_session_rotation_pending_local_on_consumer(
 static
 int check_session_rotation_pending_local(struct ltt_session *session)
 {
-       int ret;
+       int ret = 0;
        struct consumer_socket *socket;
        struct cds_lfht_iter iter;
        bool rotation_completed = true;
This page took 0.025338 seconds and 5 git commands to generate.