From 0d92b02e4ca0755adcb7caa41fe2eac0995c16f6 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: http://svn.enlightenment.org/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