From 989029dc5bd180bd6ac81de67d6e61c600c81577 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Tue, 11 Oct 2011 21:19:08 +0000 Subject: [PATCH] remember that time when somebody made a commit which caused elm to always spew lots of critical warnings on startup because there was no null check? git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@63994 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elu_ews_wm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/elu_ews_wm.c b/src/lib/elu_ews_wm.c index 578718d..0ea3c19 100644 --- a/src/lib/elu_ews_wm.c +++ b/src/lib/elu_ews_wm.c @@ -435,9 +435,11 @@ _elm_ews_wm_config_change_cb(void *data __UNUSED__, int type __UNUSED__, void *e void _elm_ews_wm_rescale(Elm_Theme *th, Eina_Bool use_theme) { - Eina_Iterator *it = eina_hash_iterator_tuple_new(_ews_borders); + Eina_Iterator *it; Eina_Hash_Tuple *tp = NULL; + if (!_ews_borders) return; + it = eina_hash_iterator_tuple_new(_ews_borders); if (!use_theme) { EINA_ITERATOR_FOREACH(it, tp) -- 2.7.4