Bug 1849518 - Add null after call to FileLocation::GetBaseFile r=jesup

Differential Revision: https://phabricator.services.mozilla.com/D187537
This commit is contained in:
Valentin Gosu 2023-09-11 07:57:04 +00:00
parent 7abea2ac06
commit ae314c254c

View File

@ -89,7 +89,9 @@ inline bool ValidFD(T fd) {
} \
if (ValidFD(fd) && fd->mFile) { \
nsCOMPtr<nsIFile> file = fd->mFile.GetBaseFile(); \
file->GetNativeLeafName(mmapScopeFilename); \
if (file) { \
file->GetNativeLeafName(mmapScopeFilename); \
} \
} \
MmapAccessScope mmapScope(mmapScopeBuf, mmapScopeBufLen, \
mmapScopeFilename.get()); \