You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2021/11/11 00:04:59 UTC
svn commit: r1894932 - in /apr/apr-util/branches/1.7.x: ./ xml/apr_xml.c
Author: ylavic
Date: Thu Nov 11 00:04:59 2021
New Revision: 1894932
URL: http://svn.apache.org/viewvc?rev=1894932&view=rev
Log:
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
Modified:
apr/apr-util/branches/1.7.x/ (props changed)
apr/apr-util/branches/1.7.x/xml/apr_xml.c
Propchange: apr/apr-util/branches/1.7.x/
------------------------------------------------------------------------------
Merged /apr/apr/trunk:r1889605
Modified: apr/apr-util/branches/1.7.x/xml/apr_xml.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.7.x/xml/apr_xml.c?rev=1894932&r1=1894931&r2=1894932&view=diff
==============================================================================
--- apr/apr-util/branches/1.7.x/xml/apr_xml.c (original)
+++ apr/apr-util/branches/1.7.x/xml/apr_xml.c Thu Nov 11 00:04:59 2021
@@ -349,8 +349,7 @@ APU_DECLARE(apr_status_t) apr_xml_parser
APU_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);