avoid passing NULL to exec functions

SVN revision: 56081
This commit is contained in:
Mike Blumenkrantz 2011-01-14 02:25:55 +00:00
parent fdc17c8c84
commit 86b9bc8479
1 changed files with 8 additions and 0 deletions

View File

@ -1500,6 +1500,14 @@ _ecore_exe_exec_it(const char *exe_cmd, Ecore_Exe_Flags flags)
}
}
if ((!args) || (!args[0]))
{
IF_FREE(buf);
IF_FREE(args);
ERR("arg[0] is NULL!");
return;
}
if (!(flags & ECORE_EXE_NOT_LEADER)) setsid();
if ((flags & ECORE_EXE_USE_SH))
{