Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewd

Dir     : e17/libs/ewd/src


Modified Files:
        ewd_list.c 


Log Message:
Couple minor fixups in the list code.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewd/src/ewd_list.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- ewd_list.c  26 Feb 2002 14:46:23 -0000      1.18
+++ ewd_list.c  25 Sep 2003 00:24:01 -0000      1.19
@@ -35,13 +35,11 @@
  */
 Ewd_List *ewd_list_new()
 {
-       Ewd_List *list = NULL;
+       Ewd_List *list;
 
        list = (Ewd_List *)malloc(sizeof(Ewd_List));
-       /*
        if (!list)
                return NULL;
-       */
 
        if (!ewd_list_init(list)) {
                FREE(list);
@@ -640,7 +638,7 @@
        list->current = node;
        list->index = index;
 
-       return list->current;
+       return list->current->data;
 }
 
 /**




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to