Commit 930f9bd5 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

#1579171
parent b61fbbde
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {