From 7945d695e5ebcfea8e41e0c3b2dc5b72f8b0a0b9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 9 Oct 2008 19:16:21 +0200 Subject: update: make the "song" variable more local --- src/update.c | 3 +-- 1 file changed, 1 insertion(+), 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))) -- cgit v1.2.3