mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 10:08:41 +00:00
Prevent crashes due to the permissions array not being initialized.
bug 223201, r=dwitte, sr=darin
This commit is contained in:
parent
289a063ebf
commit
ac29426a10
@ -60,6 +60,7 @@ class nsIPermission;
|
||||
// permission safely. (We allow space for 256 here, since it's faster to
|
||||
// deal with bytes than with bits).
|
||||
// Note: When changing NUMBER_OF_TYPES, also update PermissionsAreEmpty()
|
||||
// and the constructors.
|
||||
// This should be a multiple of 4, to make PermissionsAreEmpty() fast
|
||||
#define NUMBER_OF_TYPES (8)
|
||||
#define NUMBER_OF_PERMISSIONS (16)
|
||||
|
Loading…
x
Reference in New Issue
Block a user