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:58:12 +0000 (15:58 -0400)
Reported by scan-build.

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

index 2712a8d8abf51649bc00ab837b97a6cf35fc4e61..a7398286104d75a776124181549c33d9bc40e02c 100644 (file)
@@ -1225,8 +1225,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.024601 seconds and 4 git commands to generate.