bug fix 25626. r=tor@cs.brown.edu
git-svn-id: svn://10.0.0.236/trunk@59299 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
90484f9667
commit
91d041c0be
@ -397,10 +397,10 @@ nsresult
|
||||
nsLocalFile::GetLeafNameRaw(const char **_retval)
|
||||
{
|
||||
CHECK_mPath();
|
||||
char *leafName = strrchr((const char *)mPath, '/');
|
||||
const char *leafName = strrchr((const char *)mPath, '/');
|
||||
if (!leafName)
|
||||
return NS_ERROR_FILE_INVALID_PATH;
|
||||
*_retval = ++leafName;
|
||||
*_retval = leafName+1;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user