From 6e54a6d85c05e11422c04e9ebb88ba5efbd8f79b Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sun, 16 Jan 2011 02:01:28 +0000 Subject: [PATCH] handle no partname in embryo api. SVN revision: 56157 --- legacy/edje/src/lib/edje_embryo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/legacy/edje/src/lib/edje_embryo.c b/legacy/edje/src/lib/edje_embryo.c index e95359f..6036f79 100644 --- a/legacy/edje/src/lib/edje_embryo.c +++ b/legacy/edje/src/lib/edje_embryo.c @@ -811,6 +811,7 @@ _edje_embryo_fn_get_part_id(Embryo_Program *ep, Embryo_Cell *params) CHKPARAM(1); ed = embryo_program_data_get(ep); GETSTR(p, params[1]); + if (!p) return -1; col = ed->collection; if (!col) return -1; for (part = col->parts; *part; part++) -- 2.7.4