mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Bug 1482248 - don't crash on empty file name in nsMsgLocalStoreUtils::nsShouldIgnoreFile.
Tag #1311
This commit is contained in:
parent
a5aa1c26bf
commit
0c908247d6
1 changed files with 3 additions and 0 deletions
|
|
@ -28,6 +28,9 @@ nsMsgLocalStoreUtils::AddDirectorySeparator(nsIFile *path)
|
|||
bool
|
||||
nsMsgLocalStoreUtils::nsShouldIgnoreFile(nsAString& name)
|
||||
{
|
||||
if (name.IsEmpty())
|
||||
return true;
|
||||
|
||||
char16_t firstChar = name.First();
|
||||
if (firstChar == '.' || firstChar == '#' ||
|
||||
name.CharAt(name.Length() - 1) == '~')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue