commit 679dd60ea63ffca15052d8175779d8cc4c87402c
parent e02c1b684adc6b9b2a6a3f855418165bf885af51
Author: Ricardo Mones <ricardo@mones.org>
Date: Sat, 6 Apr 2013 13:13:28 +0200
Fix part of bug #2885 (fprintf on a NULL file pointer)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/plugins/newmail/newmail.c b/src/plugins/newmail/newmail.c
@@ -57,7 +57,8 @@ gboolean newmail_hook (gpointer source, gpointer data)
auto MsgInfo *msginfo = (MsgInfo *)source;
auto FolderItem *tof;
- if (!msginfo) return (FALSE);
+ if (!msginfo) return FALSE;
+ if (!NewLog) return FALSE;
tof = msginfo->folder;
(void)fprintf (NewLog, "---\n"