aboutsummaryrefslogtreecommitdiff
path: root/src/procmsg.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-19 08:18:53 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-19 08:18:53 +0000
commit670d6b52fe5910aa6fdc3c4a510a37ea6e2b00dc (patch)
treeb1dc5bf84d5386dcf7f34571224a2a6ee544ca67 /src/procmsg.c
parentb303c834f7f1fcf25035d709135b2a114c1110c0 (diff)
fixed crash when opening 0-numbered message.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@20 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/procmsg.c')
-rw-r--r--src/procmsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/procmsg.c b/src/procmsg.c
index 0328d47a..9b8bcb1f 100644
--- a/src/procmsg.c
+++ b/src/procmsg.c
@@ -262,8 +262,8 @@ GSList *procmsg_read_cache(FolderItem *item, gboolean scan_file)
/* if the message file doesn't exist or is changed,
don't add the data */
- if (type == F_MH && scan_file &&
- folder_item_is_msg_changed(item, msginfo))
+ if ((type == F_MH && scan_file &&
+ folder_item_is_msg_changed(item, msginfo)) || num == 0)
procmsg_msginfo_free(msginfo);
else {
msginfo->folder = item;