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:
mvl%exedo.nl 2003-10-31 19:17:03 +00:00
parent 4018692979
commit d6a249b62f

View File

@ -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)