From 2a22c1b23c3c317992f718cf5e15f88ac78cff73 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 12 Jul 2012 20:44:53 +0200 Subject: [PATCH] bug fix, missing update of a wordlist's wl_prev pointer --- src/frontend/device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/device.c b/src/frontend/device.c index 3213a75af..24fdaa8d1 100644 --- a/src/frontend/device.c +++ b/src/frontend/device.c @@ -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"))