bug fix, missing update of a wordlist's wl_prev pointer

This commit is contained in:
rlar 2012-07-12 20:44:53 +02:00
parent e1f8033f1c
commit 2a22c1b23c
1 changed files with 3 additions and 0 deletions

View File

@ -1216,6 +1216,9 @@ com_alter_common(wordlist *wl, int do_model)
wlin = wlin->wl_prev;
/* add ' = value' */
wlin->wl_next = wleq;
wleq->wl_prev = wlin;
if(wleq->wl_next)
wleq->wl_next->wl_prev = wleq;
/* step back until 'alter' or 'altermod' is found,
then move one step forward */
while (!ciprefix("alter",wlin->wl_word)) //while (!ciprefix(wlin->wl_word,"alter"))