From e517d6bd0e9500fe40fb1230bfafe0a503e2ada5 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sat, 10 Sep 2011 00:18:44 +0000
Subject: [PATCH] listAddNode allows a NULL data pointer (e.g. for tagged
 nodes).

---
 src/xpdev/link_list.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xpdev/link_list.c b/src/xpdev/link_list.c
index 3cfead7ab5..6680b4b2ae 100644
--- a/src/xpdev/link_list.c
+++ b/src/xpdev/link_list.c
@@ -553,7 +553,7 @@ list_node_t* DLLCALL listAddNode(link_list_t* list, void* data, list_node_tag_t
 {
 	list_node_t* node;
 
-	if(list==NULL || data==NULL)
+	if(list==NULL)
 		return(NULL);
 
 	if((node=(list_node_t*)malloc(sizeof(list_node_t)))==NULL)
-- 
GitLab