frontend/breakp.c, avoid segfault on/after "delete all"

This commit is contained in:
mhx 2016-02-28 23:53:15 +01:00 committed by rlar
parent 6d356f439d
commit d97e12b1ab
1 changed files with 3 additions and 1 deletions

View File

@ -332,7 +332,9 @@ com_delete(wordlist *wl)
if (wl && eq(wl->wl_word, "all")) {
dbfree(dbs);
ft_curckt->ci_dbs = dbs = NULL;
dbs = NULL;
if (ft_curckt)
ft_curckt->ci_dbs = NULL;
return;
} else if (!wl) {
if (!dbs) {