From 786f6f8a0807f2f144a0516324d1dad40c019727 Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Thu, 13 Feb 2020 20:10:32 +0000 Subject: [PATCH] [core] scan-build: Value stored to 'last_speed' is never read - switch_ivr_play_file() --- src/switch_ivr_play_say.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index e4f6de3552..e217950958 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -1207,6 +1207,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess uint32_t buflen = 0; int flags; int cumulative = 0; + int last_speed = -1; if (switch_channel_pre_answer(channel) != SWITCH_STATUS_SUCCESS) { return SWITCH_STATUS_FALSE; @@ -1591,7 +1592,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess for (;;) { int do_speed = 1; - int last_speed = -1; int f; if (!switch_channel_ready(channel)) {