Skip to content

Commit 5396636

Browse files
committed
Fix "Fix compilation with uclibc"
The ICU code must initialize the iconv members as well.
1 parent 2cf6d4b commit 5396636

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

encoding.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,6 +1641,10 @@ xmlCreateUconvHandler(const char *name, xmlCharEncodingHandler **out) {
16411641
}
16421642
enc->input = NULL;
16431643
enc->output = NULL;
1644+
#ifdef LIBXML_ICONV_ENABLED
1645+
enc->iconv_in = (iconv_t) -1;
1646+
enc->iconv_out = (iconv_t) -1;
1647+
#endif
16441648
enc->uconv_in = ucv_in;
16451649
enc->uconv_out = ucv_out;
16461650

0 commit comments

Comments
 (0)