mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
Merge pull request #342 from dragos-oancea/switch_ivr_play_say-last-speed-val-never-read
[core] scan-build: Value stored to 'last_speed' is never read - switch_ivr_play_file()
This commit is contained in:
commit
2c6480a99e
@ -1207,6 +1207,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
|
|||||||
uint32_t buflen = 0;
|
uint32_t buflen = 0;
|
||||||
int flags;
|
int flags;
|
||||||
int cumulative = 0;
|
int cumulative = 0;
|
||||||
|
int last_speed = -1;
|
||||||
|
|
||||||
if (switch_channel_pre_answer(channel) != SWITCH_STATUS_SUCCESS) {
|
if (switch_channel_pre_answer(channel) != SWITCH_STATUS_SUCCESS) {
|
||||||
return SWITCH_STATUS_FALSE;
|
return SWITCH_STATUS_FALSE;
|
||||||
@ -1591,7 +1592,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
int do_speed = 1;
|
int do_speed = 1;
|
||||||
int last_speed = -1;
|
|
||||||
int f;
|
int f;
|
||||||
|
|
||||||
if (!switch_channel_ready(channel)) {
|
if (!switch_channel_ready(channel)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user