From: Marc Hoersken Date: Sat, 19 Apr 2014 12:25:32 +0000 (+0200) Subject: url.c: fix possible use of non-null-terminated string with strlen X-Git-Tag: curl-7_37_0~135 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c48b996cf2bf9331047218b02aa28b39a8796832;p=thirdparty%2Fcurl.git url.c: fix possible use of non-null-terminated string with strlen Follow up on b0e742544be22ede33206a597b22682e51e0c676 --- diff --git a/lib/url.c b/lib/url.c index 7f204e15f3..b871bd6340 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;