Fix crash in mail menu

This commit is contained in:
Andrew Pamment 2018-05-16 13:44:04 +10:00
parent ff35d9bec9
commit 275a60d0d4

View File

@ -1689,6 +1689,7 @@ int read_message(struct user_record *user, struct msg_headers *msghs, int mailno
jb = NULL; jb = NULL;
if (user->sec_level < conf.mail_conferences[user->cur_mail_conf]->mail_areas[user->cur_mail_area]->write_sec_level) { if (user->sec_level < conf.mail_conferences[user->cur_mail_conf]->mail_areas[user->cur_mail_area]->write_sec_level) {
s_printf(get_string(113)); s_printf(get_string(113));
jb = open_jam_base(conf.mail_conferences[user->cur_mail_conf]->mail_areas[user->cur_mail_area]->path);
} else { } else {
if (msghs->msgs[mailno]->subject != NULL) { if (msghs->msgs[mailno]->subject != NULL) {
if (strncasecmp(msghs->msgs[mailno]->subject, "RE:", 3) != 0) { if (strncasecmp(msghs->msgs[mailno]->subject, "RE:", 3) != 0) {