and fix that too

SVN revision: 13164
This commit is contained in:
Carsten Haitzler 2005-02-01 03:12:26 +00:00
parent 506138f572
commit 515f1e7af1
1 changed files with 1 additions and 1 deletions

View File

@ -703,7 +703,7 @@ evas_list_nth_list(Evas_List *list, int n)
Evas_List *l;
/* check for non-existing nodes */
if ((n < 0) || (n > list->count - 1) || (!list)) return NULL;
if ((!list) || (n < 0) || (n > list->count - 1)) return NULL;
/* if the node is in the 2nd half of the list, search from the end
* else, search from the beginning.