From: Mathieu Desnoyers Date: Mon, 21 Sep 2015 19:57:36 +0000 (-0400) Subject: Fix: Value stored to 'has_waited' is never read X-Git-Tag: v2.5.7~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6bf7f09eb342cab74759995e3d3533b0a7d26c7d;p=lttng-ust.git Fix: Value stored to 'has_waited' is never read Reported by scan-build. Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c index 2712a8d8..a7398286 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -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; }