From 00eb39402aa2bbb1d4c7e1da05402635d6d5bcea Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Sat, 25 Mar 2006 19:24:44 +0000 Subject: [PATCH] Fix silly null ptr deref (331664, r=mrbkap). --- js/src/jsxml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsxml.c b/js/src/jsxml.c index d020e47b415..d55750d26db 100644 --- a/js/src/jsxml.c +++ b/js/src/jsxml.c @@ -3851,11 +3851,11 @@ DeleteProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) if (xml->xml_class != JSXML_CLASS_ELEMENT) goto out; array = &xml->xml_attrs; + length = array->length; matcher = MatchAttrName; } else { matcher = MatchElemName; } - length = array->length; if (length != 0) { deleteCount = 0; for (index = 0; index < length; index++) {