url.c: fix possible use of non-null-terminated string with strlen
authorMarc Hoersken <info@marc-hoersken.de>
Sat, 19 Apr 2014 12:25:32 +0000 (14:25 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Sat, 19 Apr 2014 12:25:32 +0000 (14:25 +0200)
Follow up on b0e742544be22ede33206a597b22682e51e0c676

lib/url.c

index 7f204e1..b871bd6 100644 (file)
--- 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;