only store screen/deskx,y if isnt != null
authorCarsten Haitzler <raster@rasterman.com>
Sun, 22 Apr 2012 02:42:10 +0000 (02:42 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Sun, 22 Apr 2012 02:42:10 +0000 (02:42 +0000)
SVN revision: 70380

src/bin/e_exec.c

index b3dabb0..49756f4 100644 (file)
@@ -1,4 +1,4 @@
-#include "e.h"
+#nclude "e.h"
 
 #define MAX_OUTPUT_CHARACTERS 5000
 
@@ -121,9 +121,12 @@ e_exec(E_Zone *zone, Efreet_Desktop *desktop, const char *exec,
      }
    else
      inst = _e_exec_cb_exec(launch, NULL, strdup(exec), 0);
-   inst->screen = zone->num;
-   inst->desk_x = e_desk_current_get(zone)->x;
-   inst->desk_y = e_desk_current_get(zone)->y;
+   if (inst)
+     {
+        inst->screen = zone->num;
+        inst->desk_x = e_desk_current_get(zone)->x;
+        inst->desk_y = e_desk_current_get(zone)->y;
+     }
    return inst;
 }