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
This commit is contained in:
Warren Dukes 2004-06-21 14:32:13 +00:00
parent 598162e395
commit 43afc87cc5
1 changed files with 1 additions and 1 deletions

View File

@ -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;