From: Mike Blumenkrantz Date: Fri, 26 Oct 2012 08:10:08 +0000 (+0000) Subject: prevent attempts to remove negative number ilist items X-Git-Tag: submit/efl/20131021.015651~2935 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef7cd7af5feda5d2e545a59b116c1b53a719cee8;p=platform%2Fupstream%2Fenlightenment.git prevent attempts to remove negative number ilist items SVN revision: 78507 --- diff --git a/src/bin/e_widget_ilist.c b/src/bin/e_widget_ilist.c index a2583f4..1db3e50 100644 --- a/src/bin/e_widget_ilist.c +++ b/src/bin/e_widget_ilist.c @@ -951,6 +951,7 @@ e_widget_ilist_remove_num(Evas_Object *obj, int n) E_Widget_Data *wd; Eina_List *item; + if (n < 0) return; wd = e_widget_data_get(obj); if (!wd) return; e_ilist_remove_num(wd->o_ilist, n);