mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
Fixed the "was iconv initialized?" detection.
This commit is contained in:
parent
44509219d2
commit
2b2cf6f9ed
@ -13,7 +13,7 @@
|
||||
|
||||
/*!
|
||||
\file
|
||||
\version \$Id: common.cpp,v 1.10 2003/04/23 14:38:53 mosu Exp $
|
||||
\version \$Id: common.cpp,v 1.11 2003/04/24 20:32:33 mosu Exp $
|
||||
\brief helper functions, common variables
|
||||
\author Moritz Bunkus <moritz @ bunkus.org>
|
||||
*/
|
||||
@ -105,6 +105,9 @@ void utf8_init() {
|
||||
}
|
||||
|
||||
void utf8_done() {
|
||||
if (iconv_initialized < 0)
|
||||
return;
|
||||
|
||||
if (iconv_initialized & 1)
|
||||
iconv_close(ict_to_utf8);
|
||||
if (iconv_initialized & 2)
|
||||
|
Loading…
Reference in New Issue
Block a user