diff options
author | Nathan French <nate@cl0d.com> | 2018-07-05 12:46:51 -0400 |
---|---|---|
committer | Nathan French <nate@cl0d.com> | 2018-07-05 12:46:51 -0400 |
commit | 514dc7579c43e673bdf613e01690371438661260 (patch) | |
tree | 592c6e55091015689faf48e06119014caa3613d1 /http.c | |
parent | 24236aed01798303745470e6c498bf606e88724a (diff) | |
download | libevent-514dc7579c43e673bdf613e01690371438661260.tar.gz |
[http] fix C90 warnings
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |