mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 17:41:53 +00:00
add error checking.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7241 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b4dfdfef84
commit
366434cfac
@ -47,6 +47,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_speech_open(switch_speech_handle_t *
|
|||||||
char buf[256] = "";
|
char buf[256] = "";
|
||||||
char *param = NULL;
|
char *param = NULL;
|
||||||
|
|
||||||
|
if (!sh || !flags || switch_strlen_zero(module_name)) {
|
||||||
|
return SWITCH_STATUS_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if (strchr(module_name, ':')) {
|
if (strchr(module_name, ':')) {
|
||||||
switch_set_string(buf, module_name);
|
switch_set_string(buf, module_name);
|
||||||
if ((param = strchr(buf, ':'))) {
|
if ((param = strchr(buf, ':'))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user