diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-06-21 14:32:13 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-06-21 14:32:13 +0000 |
commit | 43afc87cc572eeee325f2ee7ebd63b757acd8f8e (patch) | |
tree | bd3c7d9bf6d34eb3ba5b290f3e4d976eb2c457c7 /src/ls.c | |
parent | 598162e395ca82db078ff306ba4f7adae3c8bf4b (diff) | |
download | mpd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |