From 7b77847ec7bcd976d19baa5fd140fe429e3997a9 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Mon, 24 Oct 2016 00:18:18 +0100 Subject: [PATCH] fix_filename_param(): Remove redundant strlen(). --- uip/mhfixmsg.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index b4e8dc7f..e9584593 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -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]; -- 2.56.0