aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/swfmill/files/patch-src_codegen_writexml.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/swfmill/files/patch-src_codegen_writexml.xsl')
-rw-r--r--graphics/swfmill/files/patch-src_codegen_writexml.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/swfmill/files/patch-src_codegen_writexml.xsl b/graphics/swfmill/files/patch-src_codegen_writexml.xsl
index 48f689e25996..fb95220452af 100644
--- a/graphics/swfmill/files/patch-src_codegen_writexml.xsl
+++ b/graphics/swfmill/files/patch-src_codegen_writexml.xsl
@@ -5,7 +5,7 @@
size_t len = strlen(from_str);
iconv_t cd = iconv_open("UTF-8", ctx->swf_encoding);
- if (cd < 0) {
-+ if (cd == NULL) {
++ if (cd == (iconv_t)-1) {
fprintf(stderr, "iconv_open failed.\n");
return xmlCharStrdup("");
}