diff --git a/lib/hostthre.c b/lib/hostthre.c
index 9772351c1454a8eb8ef21a6621b03ec667dc063e..7526d6db85f86abd21044e736ffda54485eb4803 100644
--- a/lib/hostthre.c
+++ b/lib/hostthre.c
@@ -356,7 +356,7 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
 {
   struct thread_data   *td = (struct thread_data*) conn->async.os_specific;
   struct SessionHandle *data = conn->data;
-  CURLcode rc;
+  CURLcode rc = CURLE_OK;
 
   DEBUGASSERT(conn && td);