From 5f7276e7bd5f90e995c7798ebb6d241432074fee Mon Sep 17 00:00:00 2001 From: "mcmullen%netscape.com" Date: Mon, 3 May 1999 23:14:28 +0000 Subject: [PATCH] Fix an error in the previous checkin. git-svn-id: svn://10.0.0.236/trunk@30008 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/base/src/unix/nsFileSpecUnix.cpp | 2 +- mozilla/xpcom/io/nsFileSpecUnix.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 //----------------------------------------------------------------------------------------