GCC isn't smart enough to see that list cannot be used uninitialized. Fallout from bug 336921, rs=brendan

This commit is contained in:
mrbkap%gmail.com 2006-07-26 22:10:04 +00:00
parent 3de3debe4a
commit 2a02b41adb

View File

@ -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. */