[Freeswitch-svn] [commit] r8472 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Mon May 19 15:39:20 EDT 2008
Author: mikej
Date: Mon May 19 15:39:20 2008
New Revision: 8472
Modified:
freeswitch/trunk/src/switch_ivr_play_say.c
Log:
handle allocation error. Found by Klockwork (www.klocwork.com)
Modified: freeswitch/trunk/src/switch_ivr_play_say.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_play_say.c (original)
+++ freeswitch/trunk/src/switch_ivr_play_say.c Mon May 19 15:39:20 2008
@@ -270,6 +270,12 @@
status = SWITCH_STATUS_FALSE;
cmd = switch_core_session_strdup(session, odata);
+
+ if (!cmd) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Allocation error calling execute\n");
+ break;
+ }
+
cmd_args = switch_separate_paren_args(cmd);
if (!cmd_args ) {
More information about the Freeswitch-svn
mailing list