mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1849518 - Add null after call to FileLocation::GetBaseFile r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D187537
This commit is contained in:
parent
7abea2ac06
commit
ae314c254c
@ -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()); \
|
||||
|
Loading…
Reference in New Issue
Block a user