fix new crash in e_int_menus app finder code
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 18 Feb 2013 14:11:41 +0000 (14:11 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 18 Feb 2013 14:11:41 +0000 (14:11 +0000)
SVN revision: 84064

src/bin/e_int_menus.c

index ae20f52..7c236f6 100644 (file)
@@ -737,9 +737,9 @@ _e_int_menus_app_config_append(Efreet_Desktop *desktop)
         ERR("Try_Exec: [%s]", cma->try_exec);
         cma->exec_valid = _e_int_menus_app_finder(cma->try_exec);
      }
-   else
+   else if (cma->exec)
      {
-        if (!strchr(cma->exec, '\0'))
+        if (!strchr(cma->exec, ' '))
           cma->exec_valid = _e_int_menus_app_finder(cma->exec);
         else
           {