From 1ec2c83e493615431f6d49ab6aefcbb8cfe0e31e Mon Sep 17 00:00:00 2001 From: Ben Turner Date: Mon, 8 Sep 2008 15:09:41 -0700 Subject: [PATCH] Properly initialized mSaveDepth in JSAutoSuspendRequest, r=sayrer. --- js/src/jsapi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsapi.h b/js/src/jsapi.h index 871bd3462578..d8a55227797b 100644 --- a/js/src/jsapi.h +++ b/js/src/jsapi.h @@ -455,7 +455,7 @@ class JSAutoRequest { class JSAutoSuspendRequest { public: - JSAutoSuspendRequest(JSContext *cx) : mContext(cx) { + JSAutoSuspendRequest(JSContext *cx) : mContext(cx), mSaveDepth(0) { if (mContext) { mSaveDepth = JS_SuspendRequest(mContext); }