about summary refs log tree commit diff
path: root/rfc2047.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfc2047.c')
-rw-r--r--rfc2047.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/rfc2047.c b/rfc2047.c
index 3781526..36d1ede 100644
--- a/rfc2047.c
+++ b/rfc2047.c
@@ -139,10 +139,8 @@ blaze822_decode_rfc2047(char *dst, char *src, size_t dlen, char *tgtenc)
 		*e = '?';
 		e++;
 
-		if (ic < 0) {
-			perror("iconv_open");
+		if (ic == (iconv_t)-1)
 			goto nocode;
-		}
 
 		char enc = lc(*e++);
 		if (*e++ != '?')