From a8ada8a7d2c196d35a4e69689b340b2929c12785 Mon Sep 17 00:00:00 2001 From: raster Date: Sun, 16 Jan 2011 02:01:28 +0000 Subject: [PATCH] handle no partname in embryo api. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@56157 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_embryo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/edje_embryo.c b/src/lib/edje_embryo.c index e95359f..6036f79 100644 --- a/src/lib/edje_embryo.c +++ b/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