e: Fix segfault if no desktop file present.

SVN revision: 59702
This commit is contained in:
Miculcy Brian 2011-05-26 12:03:04 +00:00
parent 54d7870c61
commit be91e17b7d
1 changed files with 1 additions and 1 deletions

View File

@ -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;