]> diplodocus.org Git - nmh/commitdiff
sbr/fmt_rfc2047.c: Simplify test for /^=\?./.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 14 May 2017 11:08:06 +0000 (12:08 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 14 May 2017 11:08:06 +0000 (12:08 +0100)
sbr/fmt_rfc2047.c

index 2f2c3c4f47cb7cb6e9ee012e4aff2dcc60be8b40..bd703b43be97fa403e029f29e41ad0484ffda8de 100644 (file)
@@ -126,7 +126,7 @@ decode_rfc2047 (char *str, char *dst, size_t dstlen)
        equals_pending = 1;     /* we have a '=' pending */
 
        /* Check for initial =? */
-       if (*p == '=' && p[1] && p[1] == '?' && p[2]) {
+       if (*p == '=' && p[1] == '?' && p[2]) {
            startofmime = p + 2;
 
            /* Scan ahead for the next '?' character */