summaryrefslogtreecommitdiffstats
path: root/mailnews/local/src/nsMsgLocalStoreUtils.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-12-07 08:47:22 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-12-07 08:47:22 +0100
commit18159927e8f37a1858f9757803b20744fcfff505 (patch)
tree20bcaf53435839502e6cb2239132913a101fec69 /mailnews/local/src/nsMsgLocalStoreUtils.cpp
parent642032029f65e9dc0d38fbb6d35ef656c73a292c (diff)
parent5ba7f92d5a26581c91649006d9c97e4f244663e9 (diff)
downloadUXP-18159927e8f37a1858f9757803b20744fcfff505.tar
UXP-18159927e8f37a1858f9757803b20744fcfff505.tar.gz
UXP-18159927e8f37a1858f9757803b20744fcfff505.tar.lz
UXP-18159927e8f37a1858f9757803b20744fcfff505.tar.xz
UXP-18159927e8f37a1858f9757803b20744fcfff505.zip
Merge branch 'master' into release
Diffstat (limited to 'mailnews/local/src/nsMsgLocalStoreUtils.cpp')
-rw-r--r--mailnews/local/src/nsMsgLocalStoreUtils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/mailnews/local/src/nsMsgLocalStoreUtils.cpp b/mailnews/local/src/nsMsgLocalStoreUtils.cpp
index 17d9b0f29..642694d3b 100644
--- a/mailnews/local/src/nsMsgLocalStoreUtils.cpp
+++ b/mailnews/local/src/nsMsgLocalStoreUtils.cpp
@@ -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) == '~')