diff options
author | Max Kellermann <max@duempel.org> | 2008-10-09 19:20:59 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-11 19:21:51 -0700 |
commit | 04c4ea74f7d633d262ab2c54751cae29d4995621 (patch) | |
tree | 124d909ab9d08a577ed54ffd18bc81b4643f7646 /src | |
parent | ab7e9dd283abdea1ec94c75b94e450ba39fa3835 (diff) | |
download | mpd-04c4ea74f7d633d262ab2c54751cae29d4995621.tar.gz mpd-04c4ea74f7d633d262ab2c54751cae29d4995621.tar.xz mpd-04c4ea74f7d633d262ab2c54751cae29d4995621.zip |
update: don't print debug message when song was not modified
When a song file was not modified, MPD printed the debug message "not
a directory or music", because the first "if" branch did not return.
Diffstat (limited to 'src')
-rw-r--r-- | src/update.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/update.c b/src/update.c index b910486e0..40f47a26a 100644 --- a/src/update.c +++ b/src/update.c @@ -238,6 +238,8 @@ updateInDirectory(struct directory *directory, delete_song(directory, song); return UPDATE_RETURN_UPDATED; } + + return UPDATE_RETURN_NOUPDATE; } else if (S_ISDIR(st->st_mode)) { struct directory *subdir; enum update_return ret; @@ -255,11 +257,10 @@ updateInDirectory(struct directory *directory, delete_directory(subdir); return ret; + } else { + DEBUG("update: %s is not a directory or music\n", name); + return UPDATE_RETURN_NOUPDATE; } - - DEBUG("update: %s is not a directory or music\n", name); - - return UPDATE_RETURN_NOUPDATE; } /* we don't look at hidden files nor files with newlines in them */ |