Fix: uninitialized variable may be used in local rotation check
[lttng-tools.git] / src / bin / lttng-sessiond / rotation-thread.c
index 5b0267952676ccc549a95c7a3b21bab3a70d413b..3747ebae7fe337713c1758ad08fe2b8c1c775f10 100644 (file)
@@ -42,7 +42,7 @@
 #include "rotate.h"
 #include "cmd.h"
 #include "session.h"
-#include "sessiond-timer.h"
+#include "timer.h"
 #include "notification-thread-commands.h"
 
 #include <urcu.h>
@@ -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.023208 seconds and 4 git commands to generate.