git-svn-id: svn://10.0.0.236/trunk@59299 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com 2000-01-31 23:09:14 +00:00
parent 90484f9667
commit 91d041c0be

View File

@ -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;
}