forked from enlightenment/enlightenment
e: Fix segfault if no desktop file present.
SVN revision: 59702
This commit is contained in:
parent
54d7870c61
commit
be91e17b7d
|
@ -210,7 +210,7 @@ _e_exec_cb_exec(void *data, Efreet_Desktop *desktop, char *exec, int remaining)
|
|||
// ECORE_EXE_PIPE_AUTO | ECORE_EXE_PIPE_READ | ECORE_EXE_PIPE_ERROR |
|
||||
// ECORE_EXE_PIPE_READ_LINE_BUFFERED | ECORE_EXE_PIPE_ERROR_LINE_BUFFERED,
|
||||
// inst);
|
||||
if (desktop->path)
|
||||
if ((desktop) && (desktop->path))
|
||||
{
|
||||
if (!getcwd(buf, sizeof(buf))) return NULL;
|
||||
if (chdir(desktop->path)) return NULL;
|
||||
|
|
Loading…
Reference in New Issue