summaryrefslogtreecommitdiff
path: root/graphics/swfmill/files/patch-src_codegen_parsexml.xsl
blob: 15222ae2e414053a5eabdf91cea140b65de8dd24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/codegen/parsexml.xsl.orig	2013-10-30 17:33:35 UTC
+++ src/codegen/parsexml.xsl
@@ -19,7 +19,7 @@ char *fromXmlChar(const Context *ctx, co
 	if (ctx->convertEncoding) {
 		size_t len = strlen((const char *)from_str);
 		iconv_t cd = iconv_open(ctx->swf_encoding, "UTF-8");
-		if (cd < 0) {
+		if (cd == NULL) {
 			fprintf(stderr, "iconv_open failed.\n");
 			char *buf = new char[1];
 			buf[0] = '\0';