Commit 4dac2303 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't explode if ErrWhere2() comes with a NULL-pointer, fall back to

ErrWhere()
parent 6cd23c2a
......@@ -197,6 +197,10 @@ vcc_ErrWhere2(struct vcc *tl, const struct token *t, const struct token *t2)
{
const char *l1, *l2, *l3;
if (t == NULL) {
vcc_ErrWhere(tl, t2);
return;
}
vcc_iline(t, &l1, 0);
t2 = VTAILQ_PREV(t2, tokenhead, list);
vcc_iline(t2, &l2, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment