Fix unix bustage.

git-svn-id: svn://10.0.0.236/trunk@24505 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mcmullen%netscape.com
1999-03-20 00:13:08 +00:00
parent bc79a637e9
commit 76a28accfe
2 changed files with 2 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ void nsFileSpecHelpers::Canonify(nsSimpleCharString& ioPath, PRBool inMakeDirs)
strcat(buffer, ++lastSeparator);
}
}
if (!canonicalPath && *ioPath != '/' && !inMakeDirs)
if (!canonicalPath && ioPath[0] != '/' && !inMakeDirs)
{
// Well, if it's a relative path, hack it ourselves.
canonicalPath = realpath(".", buffer);