projects
/
profile
/
ivi
/
eina.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beb3357
)
* eina: Handle NULL in eina_list_search_sorted_near_list.
author
cedric
<cedric>
Tue, 21 Jul 2009 15:21:46 +0000
(15:21 +0000)
committer
cedric
<cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 21 Jul 2009 15:21:46 +0000
(15:21 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41467
7cbeb6ba
-43b4-40fd-8cce-
4c39aea84d33
src/lib/eina_list.c
patch
|
blob
|
history
diff --git
a/src/lib/eina_list.c
b/src/lib/eina_list.c
index
08c7db9
..
da63a82
100644
(file)
--- a/
src/lib/eina_list.c
+++ b/
src/lib/eina_list.c
@@
-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;