fix null dereference crash in mothra
This commit is contained in:
parent
62b3eea271
commit
cafcffb1dc
|
@ -1016,11 +1016,13 @@ mothon(Www *w, int on)
|
|||
plrtstr(&t->next, 0, 0, t->font, strdup("->"), PL_HOT, ap);
|
||||
t->next->next = x;
|
||||
} else {
|
||||
if(x) {
|
||||
t->next = x->next;
|
||||
x->next = nil;
|
||||
freetext(x);
|
||||
}
|
||||
}
|
||||
}
|
||||
updtext(w);
|
||||
donecurs();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue