mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
check value before using. Found by Klockwork (www.klocwork.com)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8447 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
22cb7b134a
commit
0a766e14a0
@ -577,7 +577,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_callback(switch_core_s
|
||||
switch_time_t started = 0;
|
||||
uint32_t elapsed;
|
||||
|
||||
if (!args->input_callback) {
|
||||
if (!args || !args->input_callback) {
|
||||
return SWITCH_STATUS_GENERR;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user