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.7.0~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f888bba7f3cff825f8d3944210fad4c52ab75e94;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 1e4bec69..8effa369 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -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; }