[http] fix C90 warnings

This commit is contained in:
Nathan French 2018-07-05 12:46:51 -04:00
parent 24236aed01
commit 514dc7579c
No known key found for this signature in database
GPG Key ID: A0BE2ADB83365305

4
http.c
View File

@ -4847,6 +4847,8 @@ static struct evhttp_uri *
evhttp_uri_parse_authority(char *source_uri)
{
struct evhttp_uri *uri = mm_calloc(1, sizeof(struct evhttp_uri));
char *end;
if (uri == NULL) {
event_warn("%s: calloc", __func__);
goto err;
@ -4854,7 +4856,7 @@ evhttp_uri_parse_authority(char *source_uri)
uri->port = -1;
uri->flags = 0;
char *end = end_of_authority(source_uri);
end = end_of_authority(source_uri);
if (parse_authority(uri, source_uri, end) < 0)
goto err;