Prevent crashes due to the permissions array not being initialized.
bug 223201, r=dwitte, sr=darin git-svn-id: svn://10.0.0.236/trunk@148659 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4018692979
commit
d6a249b62f
@ -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