summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2021-11-11 00:06:54 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2021-11-11 00:06:54 +0000
commit3cd27d4a5359e118f111bbfe116ef53783f66b6d (patch)
tree1c289cd678f62750cf24eeadc43a6dcbefbd3b7f
parent2787d5c7d04dd978cc5213efb8cb5b7c0ace31ca (diff)
downloadlibapr-util-3cd27d4a5359e118f111bbfe116ef53783f66b6d.tar.gz
Merge r1889605 from trunk:
* xml/apr_xml.c (apr_xml_parser_done): Drop variable and pass the empty string to ->Parse(), avoiding GCC 11 warning. No functional change. Submitted by: jorton git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/1.6.x@1894933 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--xml/apr_xml.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xml/apr_xml.c b/xml/apr_xml.c
index ec3bea74..2685a9a5 100644
--- a/xml/apr_xml.c
+++ b/xml/apr_xml.c
@@ -457,8 +457,7 @@ APU_DECLARE(apr_status_t) apr_xml_parser_feed(apr_xml_parser *parser,
APU_DECLARE(apr_status_t) apr_xml_parser_done(apr_xml_parser *parser,
apr_xml_doc **pdoc)
{
- char end;
- apr_status_t status = do_parse(parser, &end, 0, 1 /* is_final */);
+ apr_status_t status = do_parse(parser, "", 0, 1 /* is_final */);
/* get rid of the parser */
(void) apr_pool_cleanup_run(parser->p, parser, cleanup_parser);