diff options
author | Joe Orton <jorton@apache.org> | 2021-05-07 08:41:59 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2021-05-07 08:41:59 +0000 |
commit | 4bd79e157ce7907003cb3ee8ec2f62eaf4d3678e (patch) | |
tree | 41f248f30b367f3440c9097a635dbd6953d550a4 /xml | |
parent | a788e5919406f0adcd04ccfed4552e566e03b393 (diff) | |
download | apr-4bd79e157ce7907003cb3ee8ec2f62eaf4d3678e.tar.gz |
* xml/apr_xml.c (apr_xml_parser_done): Drop variable and pass
the empty string to ->Parse(), avoiding GCC 11 warning.
No functional change.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1889605 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'xml')
-rw-r--r-- | xml/apr_xml.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xml/apr_xml.c b/xml/apr_xml.c index 82791f49d..3897ed4af 100644 --- a/xml/apr_xml.c +++ b/xml/apr_xml.c @@ -348,8 +348,7 @@ APR_DECLARE(apr_status_t) apr_xml_parser_feed(apr_xml_parser *parser, APR_DECLARE(apr_status_t) apr_xml_parser_done(apr_xml_parser *parser, apr_xml_doc **pdoc) { - char end; - apr_status_t status = parser->impl->Parse(parser, &end, 0, 1 /* is_final */); + apr_status_t status = parser->impl->Parse(parser, "", 0, 1 /* is_final */); /* get rid of the parser */ (void) apr_pool_cleanup_run(parser->p, parser, parser->impl->cleanup); |