diff --git a/mozilla/base/src/unix/nsFileSpecUnix.cpp b/mozilla/base/src/unix/nsFileSpecUnix.cpp index 3766c1d468b..1370eec8bae 100644 --- a/mozilla/base/src/unix/nsFileSpecUnix.cpp +++ b/mozilla/base/src/unix/nsFileSpecUnix.cpp @@ -162,7 +162,7 @@ PRBool nsFileSpec::IsFile() const //---------------------------------------------------------------------------------------- { struct stat st; - return 0 == !mPath.IsEmpty() && stat(mPath, &st) && S_ISREG(st.st_mode); + return !mPath.IsEmpty() && stat(mPath, &st) == 0 && S_ISREG(st.st_mode); } // nsFileSpec::IsFile //---------------------------------------------------------------------------------------- diff --git a/mozilla/xpcom/io/nsFileSpecUnix.cpp b/mozilla/xpcom/io/nsFileSpecUnix.cpp index 3766c1d468b..1370eec8bae 100644 --- a/mozilla/xpcom/io/nsFileSpecUnix.cpp +++ b/mozilla/xpcom/io/nsFileSpecUnix.cpp @@ -162,7 +162,7 @@ PRBool nsFileSpec::IsFile() const //---------------------------------------------------------------------------------------- { struct stat st; - return 0 == !mPath.IsEmpty() && stat(mPath, &st) && S_ISREG(st.st_mode); + return !mPath.IsEmpty() && stat(mPath, &st) == 0 && S_ISREG(st.st_mode); } // nsFileSpec::IsFile //----------------------------------------------------------------------------------------