aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/update.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c
index 5b2721cdb..a1e33ba22 100644
--- a/src/update.c
+++ b/src/update.c
@@ -239,10 +239,9 @@ static enum update_return
updateInDirectory(struct directory *directory,
const char *name, const struct stat *st)
{
- struct mpd_song *song;
-
if (S_ISREG(st->st_mode) && hasMusicSuffix(name, 0)) {
const char *shortname = mpd_basename(name);
+ struct mpd_song *song;
if (!(song = songvec_find(&directory->songs, shortname))) {
if (!(song = song_file_load(shortname, directory)))