summaryrefslogtreecommitdiff
path: root/pith
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-02-12 20:49:25 -0700
committerEduardo Chappa <chappa@washington.edu>2018-02-12 20:49:25 -0700
commite937001007df277faca143d3edce6138ee143faa (patch)
treec9f3aa96ff9ee76c365988eb0f43c31babb1f70d /pith
parentf07b51ee1d9b95c4936e30c204f87a1d396a0f87 (diff)
downloadalpine-e937001007df277faca143d3edce6138ee143faa.tar.xz
* Crash when the body of a calendar is empty. Reported by Stefan
Mueller.
Diffstat (limited to 'pith')
-rw-r--r--pith/mailview.c2
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;