diff options
Diffstat (limited to 'lib/hostthre.c')
-rw-r--r-- | lib/hostthre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostthre.c b/lib/hostthre.c index 688006d2b..2ff9c4a07 100644 --- a/lib/hostthre.c +++ b/lib/hostthre.c @@ -396,7 +396,7 @@ static bool init_resolve_thread (struct connectdata *conn, const char *hostname, int port, const struct addrinfo *hints) { - struct thread_data *td = calloc(sizeof(*td), 1); + struct thread_data *td = calloc(1, sizeof(struct thread_data)); HANDLE thread_and_event[2] = {0}; if(!td) { |