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 *query;
int rc;
char protobuf[16];
char protobuf[16] = "";
const char *protop = "";
CURLcode result;
bool rebuild_url = FALSE;