E: Only chdir if path not empty
authorSebastian Dransfeld <sd@tango.flipp.net>
Mon, 15 Aug 2011 08:23:17 +0000 (08:23 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Mon, 15 Aug 2011 08:23:17 +0000 (08:23 +0000)
SVN revision: 62476

src/bin/e_exec.c

index a3b9d13..424a44f 100644 (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)))
           {