X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Frfc1524.c;h=fc0206292976aa7d5a1e2bc6ce0a00212e9885d2;hp=8705ace47650fc5543f2b4cc49a047eee550b257;hb=75b25db9f40ea7bbd11e63652d5fae591b3f1206;hpb=f3cbb9f51357972f6e74244494236a41dc4d84cd diff --git a/lib-mime/rfc1524.c b/lib-mime/rfc1524.c index 8705ace..fc02062 100644 --- a/lib-mime/rfc1524.c +++ b/lib-mime/rfc1524.c @@ -169,7 +169,8 @@ static char *parse_field(char *p, char **field, char **value) *p++ = '\0'; case '\0': m_strrtrim(*field); - m_strrtrim(*value); + if (*value) + m_strrtrim(*value); return p; case '\\': @@ -374,7 +375,7 @@ int rfc1524_mailcap_lookup (BODY * a, char *type, rfc1524_entry * entry, return 0; } - mutt_check_lookup_list (a, type, SHORT_STRING); + mutt_check_lookup_list (a, type, STRING); while (!found && *curr) { x = 0;