diff options
author | Eduardo Chappa <chappa@washington.edu> | 2018-02-12 20:49:25 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2018-02-12 20:49:25 -0700 |
commit | e937001007df277faca143d3edce6138ee143faa (patch) | |
tree | c9f3aa96ff9ee76c365988eb0f43c31babb1f70d | |
parent | f07b51ee1d9b95c4936e30c204f87a1d396a0f87 (diff) | |
download | alpine-e937001007df277faca143d3edce6138ee143faa.tar.xz |
* Crash when the body of a calendar is empty. Reported by Stefan
Mueller.
-rw-r--r-- | pith/mailview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pith/mailview.c b/pith/mailview.c index 9e8e8de7..dc9b29b6 100644 --- a/pith/mailview.c +++ b/pith/mailview.c @@ -490,7 +490,7 @@ format_calendar(long int msgno, BODY *body, HANDLE_S **handlesp, int flgs, int w } if(b->sparep == NULL){ rawtext = mail_fetch_body(ps_global->mail_stream, msgno, a->number, &callen, 0); - if(rawtext == NULL){ + if(rawtext == NULL || *rawtext == '\0'){ gf_puts(_("Error fetching calendar text"), pc); gf_puts(NEWLINE, pc); continue; |