From: Pierre Habouzit Date: Fri, 1 Dec 2006 15:00:32 +0000 (+0100) Subject: fix the real bug, that was hidden in the .h X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=4dbc0e4a9d573611d4f521400a2e16f47c176639;p=apps%2Fmadmutt.git fix the real bug, that was hidden in the .h I like when I understand what was wrong :) Signed-off-by: Pierre Habouzit --- diff --git a/lib-lib/str.h b/lib-lib/str.h index 345c16c..8c793fb 100644 --- a/lib-lib/str.h +++ b/lib-lib/str.h @@ -224,8 +224,7 @@ static inline char *vskipspaces(const char *s) { return (char *)skipspaces(s); } -char *m_strrtrim(char *s) - __attribute__((nonnull(1))); +char *m_strrtrim(char *s); /****************************************************************************/ /* search */ diff --git a/lib-mime/rfc1524.c b/lib-mime/rfc1524.c index fc02062..5b6eb50 100644 --- a/lib-mime/rfc1524.c +++ b/lib-mime/rfc1524.c @@ -169,8 +169,7 @@ static char *parse_field(char *p, char **field, char **value) *p++ = '\0'; case '\0': m_strrtrim(*field); - if (*value) - m_strrtrim(*value); + m_strrtrim(*value); return p; case '\\':