From 6adc49fc08cb87b0e7c8ead3176b45dae2ff4e2a Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Mon, 20 Apr 2026 18:01:28 -0400 Subject: 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 --- libcpp/charset.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcpp') diff --git a/libcpp/charset.cc b/libcpp/charset.cc index f07052087a8d..563b7c55f796 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); } } -- cgit v1.2.3