Don't spew uninitialized memory. (bug 822042, r=evilpie)

This commit is contained in:
Marty Rosenberg 2012-12-15 16:38:36 -05:00
parent 5747365305
commit b43c4fb0a4

View File

@ -260,7 +260,7 @@ JSONSpewer::spewMDef(MDefinition *def)
Sprinter sp(GetIonContext()->cx);
sp.init();
def->range()->print(sp);
stringProperty("type", "%s : %s", sp.string());
stringProperty("type", "%s : %s", sp.string(), StringFromMIRType(def->type()));
} else {
stringProperty("type", "%s", StringFromMIRType(def->type()));
}