fix clang nonnull complaint
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 16 Jul 2013 08:07:11 +0000 (17:07 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 16 Jul 2013 08:07:11 +0000 (17:07 +0900)
src/lib/ecore/ecore_exe.c

index c7a676987c4f5b2d664f6b2e83da188968b621c2..dc6edefe6cb5b9fd079b2917bcf785039f07b0fb 100644 (file)
@@ -1626,7 +1626,7 @@ _ecore_exe_exec_it(const char     *exe_cmd,
          return;
       }
       errno = 0;
-      execvp(args[0], args);
+      if (args[0]) execvp(args[0], args);
    }
 
    save_errno = errno;
@@ -1910,7 +1910,7 @@ _ecore_exe_dead_attach(Ecore_Exe *exe)
    if (dead)
    {
       dead->pid = exe->pid;
-      dead->cmd = strdup(exe->cmd);
+      if (exe->cmd) dead->cmd = strdup(exe->cmd);
       IF_FN_DEL(ecore_timer_del, exe->doomsday_clock);
       exe->doomsday_clock =
         ecore_timer_add(10.0, _ecore_exe_make_sure_its_dead, dead);