From b843e076050b712b11f87539a872413eb49b7b24 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 15 Sep 2005 01:39:11 +0000 Subject: [PATCH] ok - this is BIZARRE... BUT. if we remove config.h from e.h - e starts segfaulting in ALL sorts of weird places. totally bizarre! put config.h back in. SVN revision: 16721 --- src/bin/e.h | 2 ++ src/bin/e_zone.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/bin/e.h b/src/bin/e.h index 95b9bfcd7..4752a5059 100644 --- a/src/bin/e.h +++ b/src/bin/e.h @@ -4,6 +4,8 @@ #ifndef E_H #define E_H +#include "config.h" + #include #include #include diff --git a/src/bin/e_zone.c b/src/bin/e_zone.c index dde243ae8..6401c88ed 100644 --- a/src/bin/e_zone.c +++ b/src/bin/e_zone.c @@ -2,6 +2,7 @@ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ #include "e.h" +#include "config.h" /* E_Zone is a child object of E_Container. There is one zone per screen * in a xinerama setup. Each zone has one or more desktops. @@ -540,6 +541,7 @@ e_zone_app_exec(E_Zone *zone, E_App *a) char *penv_ld_preload_path; char buf[4096], buf2[32]; + if (!a) return 0; /* save previous env vars we need to save */ penv_display = getenv("DISPLAY"); if (penv_display) penv_display = strdup(penv_display);