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-Url: http://git.efficios.com/?p=deliverable%2Flttng-ust.git;a=commitdiff_plain;h=eacc4aa42c142be31d73171dc29a9a22ad080571 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 726a30f9..c619b544 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -1246,8 +1246,9 @@ restart: * deals with a killed or broken session daemon. */ sleep(5); + } else { + has_waited = 1; } - has_waited = 1; prev_connect_failed = 0; }