]> diplodocus.org Git - nmh/blobdiff - uip/mhical.c
Add more NORETURN and CHECK_PRINTF function attributes.
[nmh] / uip / mhical.c
index 650b982131c226d48dd00682b7d98ecc029a4fff..1567d3af26997db190229cf4598709712a1ce1b3 100644 (file)
@@ -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);