1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 20:15:03 -05:00

url.c: fix possible use of non-null-terminated string with strlen

Follow up on b0e742544b
This commit is contained in:
Marc Hoersken 2014-04-19 14:25:32 +02:00
parent 89390f35f8
commit c48b996cf2

View File

@ -3732,7 +3732,7 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data,
char *path = data->state.path; char *path = data->state.path;
char *query; char *query;
int rc; int rc;
char protobuf[16]; char protobuf[16] = "";
const char *protop = ""; const char *protop = "";
CURLcode result; CURLcode result;
bool rebuild_url = FALSE; bool rebuild_url = FALSE;