Do not try to dump def values from spaces with no data.

This commit is contained in:
Bill Currie 2011-03-06 15:33:53 +09:00
parent 1eb759bb8a
commit 02766f0795

View file

@ -238,7 +238,7 @@ qfo_globals (qfo_t *qfo)
flags_string (def->flags),
QFO_GETSTR (qfo, def->name),
QFO_TYPESTR (qfo, def->type));
if (!(def->flags & QFOD_EXTERNAL))
if (!(def->flags & QFOD_EXTERNAL) && qfo->spaces[space].d.data)
printf (" %d",
qfo->spaces[space].d.data[def->offset].integer_var);
puts ("");