]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
check value before using. Found by Klockwork (www.klocwork.com)
authorMichael Jerris <mike@jerris.com>
Fri, 16 May 2008 17:55:12 +0000 (17:55 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 16 May 2008 17:55:12 +0000 (17:55 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8447 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index 4b8257d880133d8e082703ad46db1fe2060b4316..4a3c9a3062e7d552c985bb078d7c1b2c4228126e 100644 (file)
@@ -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;
        }