url.c: fix possible use of non-null-terminated string with strlen
authorMarc Hoersken <info@marc-hoersken.de>
Fri, 18 Apr 2014 22:17:21 +0000 (00:17 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Fri, 18 Apr 2014 22:17:21 +0000 (00:17 +0200)
lib/url.c

index 04497d9..7f204e1 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -3733,7 +3733,7 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data,
   char *query;
   int rc;
   char protobuf[16];
-  const char *protop;
+  const char *protop = "";
   CURLcode result;
   bool rebuild_url = FALSE;