diff options
author | Eduardo Chappa <chappa@washington.edu> | 2019-05-05 11:58:12 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2019-05-05 11:58:12 -0600 |
commit | 6413ad3c988016cfee16aaf4b5d3e05d71c983d9 (patch) | |
tree | e783ae9a622227434caddfc2f044aaed0ad55464 /pith/mailcap.c | |
parent | c024a78dbaa9b42db7f18b0fea1894c41e2b0d67 (diff) | |
download | alpine-6413ad3c988016cfee16aaf4b5d3e05d71c983d9.tar.xz |
* Alpine stops parsing the mailcap file when it finds an invalid entry.
Reported by Matt Roberds to the Debian bug system at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886370.
Diffstat (limited to 'pith/mailcap.c')
-rw-r--r-- | pith/mailcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pith/mailcap.c b/pith/mailcap.c index 06a0b638..06f521f4 100644 --- a/pith/mailcap.c +++ b/pith/mailcap.c @@ -277,8 +277,8 @@ mc_parse_file(char *file) { char *tokens[MC_TOKEN_MAX]; - while(mc_parse_line(&file, tokens)) - mc_build_entry(tokens); + while(file && *file) + if(mc_parse_line(&file, tokens)) mc_build_entry(tokens); } |