aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-21 14:32:13 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-21 14:32:13 +0000
commit43afc87cc572eeee325f2ee7ebd63b757acd8f8e (patch)
treebd3c7d9bf6d34eb3ba5b290f3e4d976eb2c457c7 /src/ls.c
parent598162e395ca82db078ff306ba4f7adae3c8bf4b (diff)
downloadmpd-43afc87cc572eeee325f2ee7ebd63b757acd8f8e.tar.gz
mpd-43afc87cc572eeee325f2ee7ebd63b757acd8f8e.tar.xz
mpd-43afc87cc572eeee325f2ee7ebd63b757acd8f8e.zip
fix big boo boo in last commit: isFile() { myStat==0 }
git-svn-id: https://svn.musicpd.org/mpd/trunk@1599 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index 327d8122e..97df3c061 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -202,7 +202,7 @@ int myStat(char * utf8file, struct stat * st) {
int isFile(char * utf8file, time_t * mtime) {
struct stat st;
- if(myStat(utf8file,&st)) {
+ if(myStat(utf8file,&st)==0) {
if(S_ISREG(st.st_mode)) {
if(mtime) *mtime = st.st_mtime;
return 1;