X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/7eecb2dcc4a30573ee644491a04e18d1acd7ec81..e605596f06f250775f89ddfe3f7f2c8fcfda1c4e:/uip/mhical.c?ds=sidebyside diff --git a/uip/mhical.c b/uip/mhical.c index 650b9821..1567d3af 100644 --- a/uip/mhical.c +++ b/uip/mhical.c @@ -714,7 +714,7 @@ display (FILE *file, contentline *clines, char *nfs) { } /* Don't call on the END:VCALENDAR line. */ - if (clines->next) { + if (clines && clines->next) { (void) fmt_scan (fmt, buffer, INT_MAX, dat, NULL); fputs (charstring_buffer (buffer), file); fmt_free (fmt, 1);