forked from enlightenment/efl
eina_list: fix to check a null argument
Summary: data should be checked regardless of EINA_MAGIC define, because it is dereferenced in the following logic. Reviewers: cedric, bu5hm4n, Hermet Reviewed By: Hermet Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9750
This commit is contained in:
parent
9c52484caf
commit
4c489d5a2e
|
@ -959,6 +959,7 @@ eina_list_move_list(Eina_List **to, Eina_List **from, Eina_List *data)
|
|||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(to, EINA_FALSE);
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(from, EINA_FALSE);
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(data, EINA_FALSE);
|
||||
|
||||
#ifdef EINA_LIST_MAGIC
|
||||
if (*to) EINA_MAGIC_CHECK_LIST(*to, EINA_FALSE);
|
||||
|
|
Loading…
Reference in New Issue