Commit 43afc87c authored by Warren Dukes's avatar Warren Dukes

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
parent 598162e3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment