Skip to content

Commit

Permalink
save one unnecessary call to stat_utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Aug 26, 2009
1 parent 04c0308 commit ccc188c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/filedata.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ static void file_data_check_sidecars(FileData *fd, gboolean stat_sidecars)
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));
}
Expand Down

0 comments on commit ccc188c

Please sign in to comment.