]> granicus.if.org Git - curl/commitdiff
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 04497d9bb4d741ec6ad05909b0c3b0c5e789f532..7f204e15f3b08af4a0ab5bd30ab95a4e03ac4519 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;