mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
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:
parent
91e1eed21f
commit
645dd5e80d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user