Prevent crashes due to the permissions array not being initialized.

bug 223201, r=dwitte, sr=darin
This commit is contained in:
mvl%exedo.nl 2003-10-31 19:17:03 +00:00
parent 289a063ebf
commit ac29426a10

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)