From: Rocco Rutte Date: Thu, 11 Jun 2009 16:17:03 +0000 (+0200) Subject: Use only latest mtime of new/cur for browser, not whole stat() info X-Git-Tag: neomutt-20160307~588 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6787f82920a5e1c71c3fa7ea0b3f56d39a921607;p=neomutt Use only latest mtime of new/cur for browser, not whole stat() info --- diff --git a/browser.c b/browser.c index 7c2ac458f..c05af0524 100644 --- a/browser.c +++ b/browser.c @@ -473,7 +473,7 @@ static int examine_mailboxes (MUTTMENU *menu, struct browser_state *state) if (stat (md, &st2) < 0) st2.st_mtime = 0; if (st2.st_mtime > s.st_mtime) - memcpy (&s, &st2, sizeof (struct stat)); + s.st_mtime = st2.st_mtime; } strfcpy (buffer, NONULL(tmp->path), sizeof (buffer));