aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_exec.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-09-18 04:36:01 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-09-18 04:36:01 +0000
commitc60be515e856fdbb246cb3081b034f08530d57b5 (patch)
treee4d476fd1f28d3ca16a42ebc22d5f8e2ac567c9b /src/bin/e_exec.c
parent8d8f697a3f1ce83e89dff6739e97be5d9c4e3008 (diff)
downloadenlightenment-c60be515e856fdbb246cb3081b034f08530d57b5.tar.gz
enlightenment-c60be515e856fdbb246cb3081b034f08530d57b5.tar.xz
enlightenment-c60be515e856fdbb246cb3081b034f08530d57b5.zip
fix e_exec crash
ticket #1525 SVN revision: 76778
Diffstat (limited to 'src/bin/e_exec.c')
-rw-r--r--src/bin/e_exec.c31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/bin/e_exec.c b/src/bin/e_exec.c
index 2f9b1462b..c48fbbe47 100644
--- a/src/bin/e_exec.c
+++ b/src/bin/e_exec.c
@@ -103,25 +103,28 @@ e_exec(E_Zone *zone, Efreet_Desktop *desktop, const char *exec,
if ((!desktop) && (!exec)) return NULL;
- single = eina_hash_find(desktop->x, "X-Enlightenment-Single-Instance");
- if (single)
+ if (desktop)
{
- if ((!strcasecmp(single, "true")) ||
- (!strcasecmp(single, "yes"))||
- (!strcasecmp(single, "1")))
+ single = eina_hash_find(desktop->x, "X-Enlightenment-Single-Instance");
+ if (single)
{
- Eina_List *l;
- E_Border *bd;
-
- EINA_LIST_FOREACH(e_border_client_list(), l, bd)
+ if ((!strcasecmp(single, "true")) ||
+ (!strcasecmp(single, "yes"))||
+ (!strcasecmp(single, "1")))
{
- if (bd->desktop == desktop)
+ Eina_List *l;
+ E_Border *bd;
+
+ EINA_LIST_FOREACH(e_border_client_list(), l, bd)
{
- if (bd)
+ if (bd->desktop == desktop)
{
- if (!bd->focused) e_border_activate(bd, EINA_TRUE);
- else e_border_raise(bd);
- return NULL;
+ if (bd)
+ {
+ if (!bd->focused) e_border_activate(bd, EINA_TRUE);
+ else e_border_raise(bd);
+ return NULL;
+ }
}
}
}