[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Wed Oct 10 12:08:00 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-10-10 17:07:57 UTC
Commited by: stdarg

Modified files:
     src/egglib/linked_list.c

Log message:

Need to initialize cursors even when the pointer is passed in.

---------------------- diff included ----------------------
Index: eggdrop1.7/src/egglib/linked_list.c
diff -u eggdrop1.7/src/egglib/linked_list.c:1.2 eggdrop1.7/src/egglib/linked_list.c:1.3
--- eggdrop1.7/src/egglib/linked_list.c:1.2	Wed Oct 10 05:44:05 2001
+++ eggdrop1.7/src/egglib/linked_list.c	Wed Oct 10 12:07:47 2001
@@ -54,10 +54,9 @@
 {
 	linked_list_cursor_t *c;
 
-	if (cursor)
-		c = cursor;
-	else
-		malloc_memset(c, 0, sizeof(*c));
+	if (cursor) c = cursor;
+	else c = (linked_list_cursor_t *)malloc(sizeof(*c));
+	memset(c, 0, sizeof(*c));
 
 	c->list = list;
 	c->node = list->head;
----------------------- End of diff -----------------------



More information about the Changes mailing list