prevent a crash, e.g. when incompatible 'option interp'
is set and 'stop' is called.
This commit is contained in:
parent
a180eb60d5
commit
e35e3e3b33
|
|
@ -475,10 +475,14 @@ satisfied(struct dbcomm *d, struct plot *plot)
|
|||
fprintf(cp_err, "Error: %s: no such node\n", d->db_nodename1);
|
||||
return (FALSE);
|
||||
}
|
||||
if (v1->v_length == 0)
|
||||
return (FALSE);
|
||||
|
||||
if (isreal(v1))
|
||||
d1 = v1->v_realdata[v1->v_length - 1];
|
||||
else
|
||||
d1 = realpart((v1->v_compdata[v1->v_length - 1]));
|
||||
|
||||
} else {
|
||||
d1 = d->db_value1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue