fixed thread problem
diff --git a/threads.c b/threads.c
index 505133e..bd99efd 100644
--- a/threads.c
+++ b/threads.c
@@ -315,7 +315,7 @@
     if (gs == NULL)
 	return(NULL);
 
-    memset(gs, 0, sizeof(gs));
+    memset(gs, 0, sizeof(xmlGlobalState));
     xmlInitializeGlobalState(gs);
     return (gs);
 }