]> diplodocus.org Git - nmh/commitdiff
fix_filename_param(): Remove redundant strlen().
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 23 Oct 2016 23:18:18 +0000 (00:18 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 24 Oct 2016 09:18:56 +0000 (10:18 +0100)
uip/mhfixmsg.c

index b4e8dc7..e958459 100644 (file)
@@ -2522,12 +2522,9 @@ fix_always (CT ct, int *message_mods) {
  */
 static int
 fix_filename_param (char *name, char *value, PM *first_pm, PM *last_pm) {
-    size_t value_len;
     int fixed = 0;
 
-    if (((value_len = strlen (value)) > 0)  &&
-        HasPrefix(value, "=?") &&
-        HasSuffix(value, "?=")) {
+    if (HasPrefix(value, "=?") && HasSuffix(value, "?=")) {
         /* Looks like an RFC 2047 encoded parameter. */
         char decoded[PATH_MAX + 1];