clear the struct size not the pointer size, pointed out in bug report

#1579171
This commit is contained in:
Daniel Stenberg 2006-10-17 20:34:11 +00:00
parent b61fbbde46
commit 930f9bd534
1 changed files with 1 additions and 1 deletions

View 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)) {