blob: 48f689e25996aad407d5ce7f5bc87078317c7782 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- src/codegen/writexml.xsl.orig 2013-10-30 17:33:35 UTC
+++ src/codegen/writexml.xsl
@@ -15,7 +15,7 @@ xmlChar *toXmlChar(const Context *ctx, c
if (ctx->convertEncoding) {
size_t len = strlen(from_str);
iconv_t cd = iconv_open("UTF-8", ctx->swf_encoding);
- if (cd < 0) {
+ if (cd == NULL) {
fprintf(stderr, "iconv_open failed.\n");
return xmlCharStrdup("");
}
|