diff --git a/mozilla/xpcom/io/nsLocalFileUnix.cpp b/mozilla/xpcom/io/nsLocalFileUnix.cpp index 33dcf3c531e..b61de7fb564 100644 --- a/mozilla/xpcom/io/nsLocalFileUnix.cpp +++ b/mozilla/xpcom/io/nsLocalFileUnix.cpp @@ -285,7 +285,7 @@ nsLocalFile::InitWithNativePath(const nsACString &filePath) mPath = homePath + Substring(filePath, 1, filePath.Length() - 1); } else { - if (filePath.IsEmpty() || filePath.First() != '/') { + if (filePath.IsEmpty() || filePath.First() != '/') return NS_ERROR_FILE_UNRECOGNIZED_PATH; mPath = filePath; }