From aee008f74c07c54ef97d02551eff3d43725cbf44 Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Wed, 21 Feb 2007 21:29:56 +0000 Subject: [PATCH] Fix uninitialized ok variable bug in last checkin. git-svn-id: svn://10.0.0.236/trunk@220667 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/src/jsdbgapi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/js/src/jsdbgapi.c b/mozilla/js/src/jsdbgapi.c index 92abcf8e392..b0667586856 100644 --- a/mozilla/js/src/jsdbgapi.c +++ b/mozilla/js/src/jsdbgapi.c @@ -334,16 +334,17 @@ typedef struct JSWatchPoint { static JSBool DropWatchPointAndUnlock(JSContext *cx, JSWatchPoint *wp, uintN flag) { - JSScopeProperty *sprop; JSBool ok; + JSScopeProperty *sprop; JSObject *pobj; JSProperty *prop; JSPropertyOp setter; + ok = JS_TRUE; wp->flags &= ~flag; if (wp->flags != 0) { DBG_UNLOCK(cx->runtime); - return JS_TRUE; + return ok; } /*