RFC2047Specials is defined as
const char RFC2047Specials[] = "@.,;:<>[]\\\"()?/= \t";

As long as no dev drops it from RFC2047Specials this assert will always
be true. It adds dubious value but triggers compiler warnings.
---
 rfc2047.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/rfc2047.c b/rfc2047.c
index d67bd3dd..18655f06 100644
--- a/rfc2047.c
+++ b/rfc2047.c
@@ -328,7 +328,6 @@ static size_t try_block (ICONV_CONST char *d, size_t dlen,
   for (p = buf1; p < ob; p++)
   {
     unsigned char c = *p;
-    assert (strchr (RFC2047Specials, '?'));
     if (c >= 0x7f || c < 0x20 || *p == '_' ||
         (c != ' ' && strchr (RFC2047Specials, *p)))
       ++count;
-- 
2.51.0

Reply via email to