diff options
author | Eric Wong <normalperson@yhbt.net> | 2005-10-25 20:35:16 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2005-10-25 20:35:16 +0000 |
commit | 402c8cd707640f7bd857c3387a03bb4db40222d7 (patch) | |
tree | c9613b968fb1e091910349d689ac22755795f7c7 /src/ls.c | |
parent | f1d24a4b92f11b57f3589c098b33bce8f47681f4 (diff) | |
download | mpd-402c8cd707640f7bd857c3387a03bb4db40222d7.tar.gz mpd-402c8cd707640f7bd857c3387a03bb4db40222d7.tar.xz mpd-402c8cd707640f7bd857c3387a03bb4db40222d7.zip |
debug messages no longer cause segfaults :P
git-svn-id: https://svn.musicpd.org/mpd/trunk@3553 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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; |