mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-14 00:14:33 +00:00
GCC isn't smart enough to see that list cannot be used uninitialized. Fallout from bug 336921, rs=brendan
This commit is contained in:
parent
3de3debe4a
commit
2a02b41adb
@ -3961,6 +3961,10 @@ GetProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
|
||||
if (!xml)
|
||||
return JS_TRUE;
|
||||
|
||||
#ifdef __GNUC__
|
||||
list = NULL; /* quell GCC overwarning */
|
||||
#endif
|
||||
|
||||
retry:
|
||||
if (xml->xml_class == JSXML_CLASS_LIST) {
|
||||
/* ECMA-357 9.2.1.1 starts here. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user