Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore


Modified Files:
        ecore_list.c 


Log Message:
Forgot to commit this fix.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_list.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ecore_list.c        15 Jul 2004 13:43:13 -0000      1.7
+++ ecore_list.c        21 Jul 2004 13:55:31 -0000      1.8
@@ -1271,16 +1271,17 @@
 void *ecore_dlist_remove(Ecore_DList * list)
 {
        void *ret;
-       Ecore_List_Node *node;
+       Ecore_List *l2 = ECORE_LIST(list);
+       Ecore_DList_Node *node;
 
        CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
 
        ECORE_WRITE_LOCK(list);
 
-       if (list->current) {
-               node = list->current->next;
-               ECORE_DLIST_NODE(node)->previous =
-                       ECORE_DLIST_NODE(ECORE_LIST(list)->current)->previous;
+       if (l2->current) {
+               node = ECORE_DLIST_NODE(list->current->next);
+               if (node)
+                       node->previous = ECORE_DLIST_NODE(l2->current)->previous;
        }
        ret = _ecore_list_remove_0(list);
 




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to