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:
da19866
)
fix input check for list_move, add ESNV for error
author
discomfitor
<discomfitor>
Thu, 14 Apr 2011 18:21:40 +0000
(18:21 +0000)
committer
discomfitor
<discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 14 Apr 2011 18:21:40 +0000
(18:21 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@58670
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
2e55f94
..
f9db71f
100644
(file)
--- a/
src/lib/eina_list.c
+++ b/
src/lib/eina_list.c
@@
-877,11
+877,11
@@
eina_list_move(Eina_List **to, Eina_List **from, void *data)
EINA_SAFETY_ON_NULL_RETURN_VAL(from, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(data, EINA_FALSE);
- EINA_MAGIC_CHECK_LIST(*to, EINA_FALSE);
+
if (*to)
EINA_MAGIC_CHECK_LIST(*to, EINA_FALSE);
EINA_MAGIC_CHECK_LIST(*from, EINA_FALSE);
l = eina_list_data_find_list(*from, data);
- if (!l) return EINA_FALSE; /* should this be SAFETY_ON_NULL for a warning? */
+ EINA_SAFETY_ON_NULL_RETURN_VAL(l, EINA_FALSE);
*to = eina_list_append(*to, data);
*from = eina_list_remove_list(*from, l);