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.6.4~3 X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=commitdiff_plain;h=273e45347230e1b12c6248dbb985fd963d2ab7df 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; }