[http] fix C90 warnings

(cherry picked from commit 514dc7579c43e673bdf613e01690371438661260)
This commit is contained in:
Nathan French 2018-07-05 12:46:51 -04:00 committed by Azat Khuzhin
parent 061823b147
commit 0d5dde5357
No known key found for this signature in database
GPG Key ID: B86086848EF8686D

4
http.c
View File

@ -4836,6 +4836,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;
@ -4843,7 +4845,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;