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 <jakub@redhat.com>
This commit is contained in:
Marek Polacek
2026-04-20 18:01:28 -04:00
parent 804bde962d
commit 6adc49fc08

View File

@@ -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);
}
}