From 650cb2950dcaa7710fdffc944ddf7624407ebe41 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 2 Oct 2010 22:53:10 +0000 Subject: [PATCH] Fixed potential crash --- src/account/mbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/account/mbox.c b/src/account/mbox.c index 9e8cd21..0539543 100644 --- a/src/account/mbox.c +++ b/src/account/mbox.c @@ -77,13 +77,14 @@ static char const _mbox_name[] = "Local folders"; static char const * _error = NULL; -static AccountConfig _mbox_config[_FOLDER_CNT] = +static AccountConfig _mbox_config[_FOLDER_CNT + 1] = { { "mbox", "Inbox file", ACT_FILE, NULL }, { "spool", "Spool file", ACT_FILE, NULL }, { "draft", "Draft mails file", ACT_FILE, NULL }, { "sent", "Sent mails file", ACT_FILE, NULL }, { "trash", "Deleted mails file", ACT_FILE, NULL }, + { NULL, NULL, 0, NULL } }; static MboxFolder _mbox_inbox =