]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
clear the struct size not the pointer size, pointed out in bug report
authorDaniel Stenberg <daniel@haxx.se>
Tue, 17 Oct 2006 20:34:11 +0000 (20:34 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 17 Oct 2006 20:34:11 +0000 (20:34 +0000)
#1579171

lib/hostthre.c

index 16349847eaaac8cc8a0658071127a7374df21907..12e31ea3423b0614e3b1b867f06a13b36467812c 100644 (file)
@@ -208,7 +208,7 @@ BOOL init_thread_sync_data(struct thread_data * td,
 {
   HANDLE curr_proc = GetCurrentProcess();
 
-  memset(tsd, 0, sizeof(tsd));
+  memset(tsd, 0, sizeof(*tsd));
   if (!DuplicateHandle(curr_proc, td->mutex_waiting,
                        curr_proc, &tsd->mutex_waiting, 0, FALSE,
                        DUPLICATE_SAME_ACCESS)) {