mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 00:41:41 +00:00
Fix silly warning
This commit is contained in:
parent
fda6e896e2
commit
cc2efd5597
@ -251,12 +251,14 @@ SWITCH_DECLARE(const char *) API::executeString(const char *cmd)
|
|||||||
{
|
{
|
||||||
char *arg;
|
char *arg;
|
||||||
switch_stream_handle_t stream = { 0 };
|
switch_stream_handle_t stream = { 0 };
|
||||||
char *mycmd = strdup(cmd);
|
char *mycmd = NULL;
|
||||||
|
|
||||||
switch_assert(mycmd);
|
|
||||||
|
|
||||||
this_check("");
|
this_check("");
|
||||||
|
|
||||||
|
mycmd = strdup(cmd);
|
||||||
|
|
||||||
|
switch_assert(mycmd);
|
||||||
|
|
||||||
if ((arg = strchr(mycmd, ' '))) {
|
if ((arg = strchr(mycmd, ' '))) {
|
||||||
*arg++ = '\0';
|
*arg++ = '\0';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user