From: Marek Polacek Date: Mon, 20 Apr 2026 22:01:28 +0000 (-0400) Subject: libcpp: fix typos in iconv_close [PR124930] X-Git-Tag: basepoints/gcc-17~25 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=6adc49fc08cb87b0e7c8ead3176b45dae2ff4e2a;p=thirdparty%2Fgcc.git libcpp: fix typos in iconv_close [PR124930] This patch fixes two typos: the reverse_ prefix is missing in the iconv_close calls. PR preprocessor/124930 libcpp/ChangeLog: * charset.cc (_cpp_destroy_iconv): Correct two calls to iconv_close. Reviewed-by: Jakub Jelinek --- diff --git a/libcpp/charset.cc b/libcpp/charset.cc index f07052087a8..563b7c55f79 100644 --- a/libcpp/charset.cc +++ b/libcpp/charset.cc @@ -841,9 +841,9 @@ _cpp_destroy_iconv (cpp_reader *pfile) if (pfile->wide_cset_desc.func == convert_using_iconv) iconv_close (pfile->wide_cset_desc.cd); if (pfile->reverse_narrow_cset_desc.func == convert_using_iconv) - iconv_close (pfile->narrow_cset_desc.cd); + iconv_close (pfile->reverse_narrow_cset_desc.cd); if (pfile->reverse_utf8_cset_desc.func == convert_using_iconv) - iconv_close (pfile->utf8_cset_desc.cd); + iconv_close (pfile->reverse_utf8_cset_desc.cd); } }