summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorNathan French <nate@cl0d.com>2018-07-05 12:46:51 -0400
committerNathan French <nate@cl0d.com>2018-07-05 12:46:51 -0400
commit514dc7579c43e673bdf613e01690371438661260 (patch)
tree592c6e55091015689faf48e06119014caa3613d1 /http.c
parent24236aed01798303745470e6c498bf606e88724a (diff)
downloadlibevent-514dc7579c43e673bdf613e01690371438661260.tar.gz
[http] fix C90 warnings
Diffstat (limited to 'http.c')
-rw-r--r--http.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/http.c b/http.c
index b04af9a3..7db4d782 100644
--- a/http.c
+++ b/http.c
@@ -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;