1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-18 09:32:34 +00:00

Fix silly warning

This commit is contained in:
Brian West 2013-04-16 12:11:33 -05:00
parent 080f301a3a
commit 22e5203e88

@ -251,12 +251,14 @@ SWITCH_DECLARE(const char *) API::executeString(const char *cmd)
{
char *arg;
switch_stream_handle_t stream = { 0 };
char *mycmd = strdup(cmd);
switch_assert(mycmd);
char *mycmd = NULL;
this_check("");
mycmd = strdup(cmd);
switch_assert(mycmd);
if ((arg = strchr(mycmd, ' '))) {
*arg++ = '\0';
}