* eina: Handle NULL in eina_list_search_sorted_near_list.

SVN revision: 41467
This commit is contained in:
Cedric BAIL 2009-07-21 15:21:46 +00:00
parent 1ef8e96d05
commit e75b89d50c
1 changed files with 2 additions and 0 deletions

View File

@ -1649,6 +1649,8 @@ eina_list_search_sorted_near_list(const Eina_List *list, Eina_Compare_Cb func, c
unsigned int inf, sup, cur, tmp;
int part;
if (!list) return NULL;
inf = 0;
sup = eina_list_count(list) ;
cur = sup >> 1;