Bug 620961 - FoldXMLConstants should initialize str. r=brendan, a=sayrer
authortimeless <timeless@bemail.org>
Wed, 12 Jan 2011 14:58:54 -0800
changeset 60569 2d3cbd00376d0d6962988825fc882eb5c701db8e
parent 60568 d1adb7b245bdeebc6167f0e068e0366d1e3d0da6
child 60570 6ef4c13f0941e7536238c099cba64dff202d3748
push id18037
push usercleary@mozilla.com
push dateFri, 14 Jan 2011 17:42:55 +0000
treeherdermozilla-central@4e0501a0c5e5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbrendan, sayrer
bugs620961
milestone2.0b10pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 620961 - FoldXMLConstants should initialize str. r=brendan, a=sayrer
js/src/jsparse.cpp
--- a/js/src/jsparse.cpp
+++ b/js/src/jsparse.cpp
@@ -9010,16 +9010,17 @@ FoldXMLConstants(JSContext *cx, JSParseN
     JSString *accum, *str;
     uint32 i, j;
 
     JS_ASSERT(pn->pn_arity == PN_LIST);
     tt = PN_TYPE(pn);
     pnp = &pn->pn_head;
     pn1 = *pnp;
     accum = NULL;
+    str = NULL;
     if ((pn->pn_xflags & PNX_CANTFOLD) == 0) {
         if (tt == TOK_XMLETAGO)
             accum = ATOM_TO_STRING(cx->runtime->atomState.etagoAtom);
         else if (tt == TOK_XMLSTAGO || tt == TOK_XMLPTAGC)
             accum = ATOM_TO_STRING(cx->runtime->atomState.stagoAtom);
     }
 
     /*