landing branch fix to trunk. Bug #47248 ---> Fix GetParent such that if appendedPath is an empy string we treat it the same as if it were null and create a dummy path.

This commit is contained in:
mscott%netscape.com 2000-08-03 22:13:34 +00:00
parent 91e1eed21f
commit 645dd5e80d

View File

@ -1739,7 +1739,7 @@ nsLocalFile::GetParent(nsIFile * *aParent)
char* appendedPath;
GetAppendedPath(&appendedPath);
if (appendedPath == nsnull || (appendedPath[0] == ':' && appendedPath[1] == '\0' ))
if (appendedPath == nsnull || appendedPath[0] == '\0'|| (appendedPath[0] == ':' && appendedPath[1] == '\0' ))
{
rv = ResolveAndStat(PR_TRUE);