From: sachiel Date: Fri, 3 Sep 2010 14:37:42 +0000 (+0000) Subject: Don't put nulls in the list of programs, makes little sense. X-Git-Tag: submit/2.0alpha-wayland/20121127.221958~1067 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1b3d6ced66559cee422e97bd66b9df1dd87345a;p=profile%2Fivi%2Fedje.git Don't put nulls in the list of programs, makes little sense. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@51863 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/edje_edit.c b/src/lib/edje_edit.c index b4bcfb8..117bb6a 100644 --- a/src/lib/edje_edit.c +++ b/src/lib/edje_edit.c @@ -4959,6 +4959,9 @@ edje_edit_programs_list_get(Evas_Object *obj) Edje_Program *epr; epr = ed->table_programs[i]; + /* XXX: bad, we miss programs this way, but since you can't access + * them in any way without a name, better ignore them. */ + if (!epr->name) continue; progs = eina_list_append(progs, eina_stringshare_add(epr->name)); }