From 2a02b41adbc840beb7351754783f6ee07cabc8b7 Mon Sep 17 00:00:00 2001 From: "mrbkap%gmail.com" Date: Wed, 26 Jul 2006 22:10:04 +0000 Subject: [PATCH] GCC isn't smart enough to see that list cannot be used uninitialized. Fallout from bug 336921, rs=brendan --- js/src/jsxml.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/src/jsxml.c b/js/src/jsxml.c index afcb982a0b94..0db2a78c258b 100644 --- a/js/src/jsxml.c +++ b/js/src/jsxml.c @@ -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. */