Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: nss/mozilla/security/nss/lib/util/secport.c

Issue 3135002: Update to NSS 3.12.7 and NSPR 4.8.6.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nss/mozilla/security/nss/lib/util/secport.c
===================================================================
--- nss/mozilla/security/nss/lib/util/secport.c (revision 55475)
+++ nss/mozilla/security/nss/lib/util/secport.c (working copy)
@@ -41,7 +41,7 @@
*
* NOTE - These are not public interfaces
*
- * $Id: secport.c,v 1.28 2010/01/22 02:34:30 wtc%google.com Exp $
+ * $Id: secport.c,v 1.29 2010/03/28 20:46:37 nelson%bolyard.com Exp $
*/
#include "seccomon.h"
@@ -344,11 +344,7 @@
checkedEnv = PR_TRUE;
}
if (zero) {
- PLArena *a;
- for (a = arena->first.next; a; a = a->next) {
- PR_ASSERT(a->base <= a->avail && a->avail <= a->limit);
- memset((void *)a->base, 0, a->avail - a->base);
- }
+ PL_ClearArenaPool(arena, 0);
}
if (doFreeArenaPool) {
PL_FreeArenaPool(arena);

Powered by Google App Engine
This is Rietveld 408576698