aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_exec.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2012-10-04 23:27:01 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2012-10-04 23:27:01 +0000
commit80b0b615b8738d8f2813433014886aeb0072861a (patch)
treee283774a25aef80f349346b405cf931fc87ad1c2 /src/bin/e_exec.c
parent427b6c34dfb1d7fa724262f23178841c3d8ba5e3 (diff)
downloadenlightenment-80b0b615b8738d8f2813433014886aeb0072861a.tar.gz
enlightenment-80b0b615b8738d8f2813433014886aeb0072861a.tar.xz
enlightenment-80b0b615b8738d8f2813433014886aeb0072861a.zip
e: Cleanup
Fixes potential invalid memory reads. Patch by Igor Murzov SVN revision: 77491
Diffstat (limited to 'src/bin/e_exec.c')
-rw-r--r--src/bin/e_exec.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/bin/e_exec.c b/src/bin/e_exec.c
index b1c66c6e7..8590bf1b6 100644
--- a/src/bin/e_exec.c
+++ b/src/bin/e_exec.c
@@ -158,15 +158,13 @@ e_exec(E_Zone *zone, Efreet_Desktop *desktop, const char *exec,
EINA_LIST_FOREACH(e_border_client_list(), l, bd)
{
- if (bd->desktop == desktop)
+ if (bd && bd->desktop == desktop)
{
- if (bd)
- {
- if (!bd->focused)
- e_border_activate(bd, EINA_TRUE);
- else e_border_raise(bd);
- return NULL;
- }
+ if (!bd->focused)
+ e_border_activate(bd, EINA_TRUE);
+ else
+ e_border_raise(bd);
+ return NULL;
}
}
}