From d6a249b62f6fe4e4e8a982e36346a0702c51b522 Mon Sep 17 00:00:00 2001 From: "mvl%exedo.nl" Date: Fri, 31 Oct 2003 19:17:03 +0000 Subject: [PATCH] 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 --- mozilla/extensions/cookie/nsPermissionManager.h | 1 + 1 file changed, 1 insertion(+) diff --git a/mozilla/extensions/cookie/nsPermissionManager.h b/mozilla/extensions/cookie/nsPermissionManager.h index 8667b34fae7..b7f0fbc9e54 100644 --- a/mozilla/extensions/cookie/nsPermissionManager.h +++ b/mozilla/extensions/cookie/nsPermissionManager.h @@ -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)