Browse Source

device.c, #4/19, loop wont be executed, and 'step' wont be used any more

pre-master-46
rlar 9 years ago
parent
commit
3f09ab6634
  1. 4
      src/frontend/device.c

4
src/frontend/device.c

@ -1161,11 +1161,7 @@ com_alter_common(wordlist *wl, int do_model)
/* We found '=' */ /* We found '=' */
eqfound = TRUE; eqfound = TRUE;
if (strlen(argument) == 1) { if (strlen(argument) == 1) {
step = -1;
wl2 = wlin; wl2 = wlin;
/* step back in the wordlist, if we have moved forward, to catch 'm1' */
for (i = step; i > 0; i--)
wl2 = wl2->wl_prev;
} else if (strlen(argument) > 1) { } else if (strlen(argument) > 1) {
wl2 = NULL; wl2 = NULL;
if (eqptr[1]) if (eqptr[1])

Loading…
Cancel
Save