forked from enlightenment/efl
Ecore Exe: check parameter validity
This commit is contained in:
parent
b29340b3a1
commit
3e02f6fd4c
|
@ -80,6 +80,7 @@ ecore_exe_pipe_run(const char *exe_cmd,
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_ecore_exe_command_set(Eo *obj EINA_UNUSED, Ecore_Exe_Data *pd, const char *cmd, Ecore_Exe_Flags flags)
|
_ecore_exe_command_set(Eo *obj EINA_UNUSED, Ecore_Exe_Data *pd, const char *cmd, Ecore_Exe_Flags flags)
|
||||||
{
|
{
|
||||||
|
if (!cmd) return;
|
||||||
pd->cmd = strdup(cmd);
|
pd->cmd = strdup(cmd);
|
||||||
pd->flags = flags;
|
pd->flags = flags;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue