[Freeswitch-svn] [commit] r7241 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Tue Jan 15 13:08:47 EST 2008
Author: mikej
Date: Tue Jan 15 13:08:47 2008
New Revision: 7241
Modified:
freeswitch/trunk/src/switch_core_speech.c
Log:
add error checking.
Modified: freeswitch/trunk/src/switch_core_speech.c
==============================================================================
--- freeswitch/trunk/src/switch_core_speech.c (original)
+++ freeswitch/trunk/src/switch_core_speech.c Tue Jan 15 13:08:47 2008
@@ -47,6 +47,10 @@
char buf[256] = "";
char *param = NULL;
+ if (!sh || !flags || switch_strlen_zero(module_name)) {
+ return SWITCH_STATUS_FALSE;
+ }
+
if (strchr(module_name, ':')) {
switch_set_string(buf, module_name);
if ((param = strchr(buf, ':'))) {
More information about the Freeswitch-svn
mailing list