svn commit: trunk/busybox/libbb
landley at busybox.net
landley at busybox.net
Thu May 11 18:25:25 UTC 2006
Author: landley
Date: 2006-05-11 11:25:24 -0700 (Thu, 11 May 2006)
New Revision: 15072
Log:
Bug fix from Vladimir Oleynik, and suggestion I add my copyright notice
to the file.
Modified:
trunk/busybox/libbb/llist.c
Changeset:
Modified: trunk/busybox/libbb/llist.c
===================================================================
--- trunk/busybox/libbb/llist.c 2006-05-11 17:33:10 UTC (rev 15071)
+++ trunk/busybox/libbb/llist.c 2006-05-11 18:25:24 UTC (rev 15072)
@@ -5,6 +5,7 @@
* Copyright (C) 2003 Glenn McGrath
* Copyright (C) 2005 Vladimir Oleynik
* Copyright (C) 2005 Bernhard Fischer
+ * Copyright (C) 2006 Rob Landley <rob at landley.net>
*
* Licensed under the GPL v2, see the file LICENSE in this tarball.
*/
@@ -57,8 +58,8 @@
else {
void *next = (*head)->link;
data = (*head)->data;
- *head = (*head)->link;
- free(next);
+ free(*head);
+ *head = next;
}
return data;
More information about the busybox-cvs
mailing list