BAD DISCOMFITOR! BROKE ecore_exe!

SVN revision: 56110
This commit is contained in:
Carsten Haitzler 2011-01-14 11:58:58 +00:00
parent 79a249e476
commit 0247870d6e
1 changed files with 7 additions and 8 deletions

View File

@ -1500,14 +1500,6 @@ _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))
{
@ -1527,6 +1519,13 @@ _ecore_exe_exec_it(const char *exe_cmd, Ecore_Exe_Flags flags)
}
else
{ /* We can run this directly. */
if (!args)
{
IF_FREE(buf);
IF_FREE(args);
ERR("arg[0] is NULL!");
return;
}
errno = 0;
execvp(args[0], args);
}