From: Richard Russon Date: Thu, 16 Aug 2018 11:31:40 +0000 (+0100) Subject: bug: check pointer X-Git-Tag: 2019-10-25~695 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af9adbb13e26dd3c92f7de82adba48de6f7a8f37;p=neomutt bug: check pointer --- diff --git a/browser.c b/browser.c index 6d39df235..440cfcd26 100644 --- a/browser.c +++ b/browser.c @@ -877,7 +877,7 @@ static int examine_directory(struct Menu *menu, struct BrowserState *state, np->b->msg_count = Context->msgcount; np->b->msg_unread = Context->unread; } - add_folder(menu, state, de->d_name, NULL, &s, np->b, NULL); + add_folder(menu, state, de->d_name, NULL, &s, np ? np->b : NULL, NULL); } closedir(dp); }