Bug 1172824: Initialize a few members in CompartmentCheckTracer (CID 1304705); r=terrence

This commit is contained in:
Benjamin Bouvier 2015-06-09 10:27:51 +02:00
parent adc2c95688
commit e4bc6fd109

View File

@ -3680,7 +3680,9 @@ class CompartmentCheckTracer : public JS::CallbackTracer
void trace(void** thingp, JS::TraceKind kind) override;
public:
explicit CompartmentCheckTracer(JSRuntime* rt) : JS::CallbackTracer(rt) {}
explicit CompartmentCheckTracer(JSRuntime* rt)
: JS::CallbackTracer(rt), src(nullptr), zone(nullptr), compartment(nullptr)
{}
Cell* src;
JS::TraceKind srcKind;