diff --git a/js/src/jsxdrapi.cpp b/js/src/jsxdrapi.cpp index 2eb9419d74e..f8813b95554 100644 --- a/js/src/jsxdrapi.cpp +++ b/js/src/jsxdrapi.cpp @@ -604,7 +604,6 @@ js_XDRAtom(JSXDRState *xdr, JSAtom **atomp) { jsval v; uint32 type; - jsdouble d; if (xdr->mode == JSXDR_ENCODE) { v = ATOM_KEY(*atomp); @@ -621,6 +620,7 @@ js_XDRAtom(JSXDRState *xdr, JSAtom **atomp) return js_XDRStringAtom(xdr, atomp); if (type == JSVAL_DOUBLE) { + jsdouble d = 0; if (!XDRDoubleValue(xdr, &d)) return JS_FALSE; *atomp = js_AtomizeDouble(xdr->cx, d);