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:06:54 UTC
svn commit: r1894933 - in /apr/apr-util/branches/1.6.x: ./ xml/apr_xml.c
Author: ylavic
Date: Thu Nov 11 00:06:54 2021
New Revision: 1894933
URL: http://svn.apache.org/viewvc?rev=1894933&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.6.x/ (props changed)
apr/apr-util/branches/1.6.x/xml/apr_xml.c
Propchange: apr/apr-util/branches/1.6.x/
------------------------------------------------------------------------------
Merged /apr/apr/trunk:r1889605
Modified: apr/apr-util/branches/1.6.x/xml/apr_xml.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.6.x/xml/apr_xml.c?rev=1894933&r1=1894932&r2=1894933&view=diff
==============================================================================
--- apr/apr-util/branches/1.6.x/xml/apr_xml.c (original)
+++ apr/apr-util/branches/1.6.x/xml/apr_xml.c Thu Nov 11 00:06:54 2021
@@ -457,8 +457,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 = 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);