aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2014-04-19 14:25:32 +0200
committerMarc Hoersken <info@marc-hoersken.de>2014-04-19 14:25:32 +0200
commitc48b996cf2bf9331047218b02aa28b39a8796832 (patch)
tree23125405faa928f9f8d9baa49685231f4e8b33dc
parent89390f35f8fe1948e829e5e0d1b10c74bb460629 (diff)
url.c: fix possible use of non-null-terminated string with strlen
Follow up on b0e742544be22ede33206a597b22682e51e0c676
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 7f204e15f..b871bd634 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;