projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
workarounds, I do not understand why it segfault, it should *NOT*
[apps/madmutt.git]
/
lib-mime
/
rfc1524.c
diff --git
a/lib-mime/rfc1524.c
b/lib-mime/rfc1524.c
index
8705ace
..
fc02062
100644
(file)
--- 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);
*p++ = '\0';
case '\0':
m_strrtrim(*field);
- m_strrtrim(*value);
+ if (*value)
+ m_strrtrim(*value);
return p;
case '\\':
return p;
case '\\':
@@
-374,7
+375,7
@@
int rfc1524_mailcap_lookup (BODY * a, char *type, rfc1524_entry * entry,
return 0;
}
return 0;
}
- mutt_check_lookup_list (a, type, S
HORT_S
TRING);
+ mutt_check_lookup_list (a, type, STRING);
while (!found && *curr) {
x = 0;
while (!found && *curr) {
x = 0;