From 0a766e14a0257faa553338e8036dca59996fc2fd Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 16 May 2008 17:55:12 +0000 Subject: [PATCH] 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 --- src/switch_ivr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 4b8257d880..4a3c9a3062 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -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; }