elm layout: Fixed handling of NULL in part_content_set.

Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 69918
This commit is contained in:
Daniel Zaoui 2012-04-04 09:04:39 +00:00 committed by Tom Hacohen
parent d6bb18ee02
commit 2af393e43b
1 changed files with 1 additions and 0 deletions

View File

@ -371,6 +371,7 @@ _content_set_hook(Evas_Object *obj, const char *part, Evas_Object *content)
Subinfo *si;
const Eina_List *l;
if (!wd) return;
EINA_SAFETY_ON_NULL_RETURN(part);
EINA_LIST_FOREACH(wd->subs, l, si)
{
if ((si->type == SWALLOW) && (!strcmp(part, si->part)))