E: Only chdir if path not empty

SVN revision: 62476
This commit is contained in:
Sebastian Dransfeld 2011-08-15 08:23:17 +00:00
parent f51806bd82
commit 93682ec523
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,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) && (desktop->path))
if ((desktop) && (desktop->path) && (desktop->path[0]))
{
if (!getcwd(buf, sizeof(buf)))
{