mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 762115 - Missing null check at nsHttpChannel::GetProfileDirectory, r=michal
This commit is contained in:
parent
41b58b77bf
commit
226f248afc
@ -5381,6 +5381,9 @@ nsHttpChannel::GetProfileDirectory(nsIFile **_result)
|
||||
{
|
||||
NS_ENSURE_ARG(_result);
|
||||
|
||||
if (!mProfileDirectory)
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
|
||||
NS_ADDREF(*_result = mProfileDirectory);
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user