protect pointer

This commit is contained in:
Vítor Santos Costa 2015-11-05 15:24:27 +00:00
parent 8fcceb9957
commit ddfed40e00

View File

@ -640,8 +640,10 @@ ShowOp (compiler_vm_op ic, const char *f, struct PSEUDO *cpc)
case 'v': case 'v':
{ {
Ventry *v = (Ventry *) arg; Ventry *v = (Ventry *) arg;
Yap_DebugErrorPutc (v->KindOfVE == PermVar ? 'Y' : 'X'); if (v) {
Yap_DebugPlWrite (MkIntTerm ((v->NoOfVE) & MaskVarAdrs)); Yap_DebugErrorPutc (v->KindOfVE == PermVar ? 'Y' : 'X');
Yap_DebugPlWrite (MkIntTerm ((v->NoOfVE) & MaskVarAdrs));
}
} }
break; break;
case 'N': case 'N':