Fix: Value stored to 'has_waited' is never read
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 21 Sep 2015 19:57:36 +0000 (15:57 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 21 Sep 2015 19:57:36 +0000 (15:57 -0400)
Reported by scan-build.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-comm.c

index 726a30f9bdb6ffbfef4bc5fe17d11319ffdcd434..c619b5449dffafaa382927d63ff193656031bf02 100644 (file)
@@ -1246,8 +1246,9 @@ restart:
                         * deals with a killed or broken session daemon.
                         */
                        sleep(5);
+               } else {
+                       has_waited = 1;
                }
-               has_waited = 1;
                prev_connect_failed = 0;
        }
 
This page took 0.029109 seconds and 5 git commands to generate.