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++ != '?')