aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-10-17 20:34:11 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-10-17 20:34:11 +0000
commit930f9bd5342e6d514f9ba5b1303762c100621965 (patch)
treeaba66d595a76c89b1d32955d533f4d77067b0d31
parentb61fbbde4645a81de5019a23ecf13f0b7b33ace4 (diff)
clear the struct size not the pointer size, pointed out in bug report
#1579171
-rw-r--r--lib/hostthre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostthre.c b/lib/hostthre.c
index 16349847e..12e31ea34 100644
--- a/lib/hostthre.c
+++ b/lib/hostthre.c
@@ -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)) {