diff --git a/lib/url.c b/lib/url.c
index 7f204e15f3b08af4a0ab5bd30ab95a4e03ac4519..b871bd634080eaa68f993f70b8dc7328fba8bb46 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3732,7 +3732,7 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data,
   char *path = data->state.path;
   char *query;
   int rc;
-  char protobuf[16];
+  char protobuf[16] = "";
   const char *protop = "";
   CURLcode result;
   bool rebuild_url = FALSE;