fix the real bug, that was hidden in the .h
authorPierre Habouzit <madcoder@debian.org>
Fri, 1 Dec 2006 15:00:32 +0000 (16:00 +0100)
committerPierre Habouzit <madcoder@debian.org>
Fri, 1 Dec 2006 15:00:32 +0000 (16:00 +0100)
I like when I understand what was wrong :)

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lib-lib/str.h
lib-mime/rfc1524.c

index 345c16c..8c793fb 100644 (file)
@@ -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                                                                   */
index fc02062..5b6eb50 100644 (file)
@@ -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 '\\':