Merge pull request #287 from dragos-oancea/switch_ivr_park-val-never-read
[core] scan-build: Value stored to 'timeout' is never read - switch_ivr_park()
This commit is contained in:
commit
8f8e74cae9
|
@ -989,9 +989,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_park(switch_core_session_t *session,
|
||||||
timeout_cause = switch_channel_str2cause(cause_str + 1);
|
timeout_cause = switch_channel_str2cause(cause_str + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((timeout = atoi(to)) < 0) {
|
if ((timeout = atoi(to)) >= 0) {
|
||||||
timeout = 0;
|
|
||||||
} else {
|
|
||||||
expires = switch_epoch_time_now(NULL) + timeout;
|
expires = switch_epoch_time_now(NULL) + timeout;
|
||||||
}
|
}
|
||||||
switch_channel_set_variable(channel, "park_timeout", NULL);
|
switch_channel_set_variable(channel, "park_timeout", NULL);
|
||||||
|
|
Loading…
Reference in New Issue