Mercurial > geeqie.yaz
changeset 1706:60f138e3ff81
save one unnecessary call to stat_utf8
author | nadvornik |
---|---|
date | Wed, 26 Aug 2009 19:16:02 +0000 |
parents | b8491d75ea22 |
children | bca2ab687abb |
files | src/filedata.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/filedata.c Tue Aug 25 22:21:46 2009 +0000 +++ b/src/filedata.c Wed Aug 26 19:16:02 2009 +0000 @@ -513,7 +513,8 @@ FileData *sfd = work2->data; if (g_ascii_strcasecmp(ext, sfd->extension) == 0 && - stat_utf8(sfd->path, &nst)) /* basename list can contain deleted files */ + (sfd == fd || stat_utf8(sfd->path, &nst))) + /* basename list can contain deleted files, fd was recently stat'd by caller */ { group_list = g_list_append(group_list, file_data_ref(sfd)); }