From 9085084ccb0c8cc81f2c85d201184a90b50cb595 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 10 Jun 2017 09:43:04 +0200 Subject: [PATCH] device.c, #9/19, drop variable 'rhs' --- src/frontend/device.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/device.c b/src/frontend/device.c index fe8999d9c..a8449b766 100644 --- a/src/frontend/device.c +++ b/src/frontend/device.c @@ -1124,7 +1124,7 @@ com_alter_common(wordlist *wl, int do_model) /* DIE 2009_02_06 */ int i, wlen, maxelem = 3; - wordlist *wl2 = NULL, *wlin, *rhs; + wordlist *wl2 = NULL, *wlin; if (!ft_curckt) { fprintf(cp_err, "Error: no circuit loaded\n"); @@ -1205,8 +1205,7 @@ com_alter_common(wordlist *wl, int do_model) } /* add the '=' */ wlin = wlin->wl_prev; - rhs = wl_chop_rest(wlin); - wlin = wl_append(wlin, wl_cons(copy("="), rhs)); + wlin = wl_append(wlin, wl_cons(copy("="), wl_chop_rest(wlin))); /* 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"))