From 4dbc0e4a9d573611d4f521400a2e16f47c176639 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Fri, 1 Dec 2006 16:00:32 +0100 Subject: [PATCH] fix the real bug, that was hidden in the .h I like when I understand what was wrong :) Signed-off-by: Pierre Habouzit --- lib-lib/str.h | 3 +-- lib-mime/rfc1524.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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 '\\': -- 2.20.1