Fix silly null ptr deref (331664, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@192993 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e72c1a17e1
commit
e2eaab95ea
@ -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++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user