Commit 5976daa84301232da25e9cda415fa724aaef8eec

Ramiro Polla 2009-01-11T21:59:46

Clear ->next after creating nobject.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/dlfcn.c b/dlfcn.c
index e8b7223..59e7fa6 100644
--- a/dlfcn.c
+++ b/dlfcn.c
@@ -75,6 +75,7 @@ static void global_add( HMODULE hModule )
         return;
 
     pobject->next = nobject;
+    nobject->next = NULL;
     nobject->previous = pobject;
     nobject->hModule = hModule;
 }