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

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

index 1e4bec699b4f454c0d01eef2749f6a7204e5f89d..8effa36999bb8230f5b1718a8a2aa60808305343 100644 (file)
@@ -1228,8 +1228,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.025954 seconds and 4 git commands to generate.