aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ls.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ls.c b/src/ls.c
index 9cdf4bb66..762ddd672 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -278,11 +278,9 @@ InputPlugin * hasMusicSuffix(char * utf8file) {
InputPlugin * isMusic(char * utf8file, time_t * mtime) {
if(isFile(utf8file,mtime)) {
- InputPlugin *plugin = hasMusicSuffix(utf8file);
- if (plugin == NULL) {
- DEBUG("isMusic: %s is not a supported music file\n");
- }
- return plugin;
+ InputPlugin * plugin = hasMusicSuffix(utf8file);
+ if (plugin != NULL)
+ return plugin;
}
DEBUG("isMusic: %s is not a valid file\n",utf8file);
return NULL;