device.c, #2/19, 'wl' will not be used any more
This commit is contained in:
parent
1eca384a94
commit
670d87a589
|
|
@ -1161,10 +1161,8 @@ com_alter_common(wordlist *wl, int do_model)
|
|||
/* We found '=' */
|
||||
eqfound = TRUE;
|
||||
if (strlen(argument) == 1) {
|
||||
wl = wl->wl_next;
|
||||
step = -1;
|
||||
wl2 = wlin;
|
||||
wl = NULL;
|
||||
} else if (strlen(argument) > 1) {
|
||||
wl2 = NULL;
|
||||
if (eqptr[1])
|
||||
|
|
@ -1174,7 +1172,6 @@ com_alter_common(wordlist *wl, int do_model)
|
|||
wl2 = wl_cons(copy_substring(argument, eqptr), wl2);
|
||||
/* combine wordlists into wl2, free wl */
|
||||
wl_splice(wl, wl2);
|
||||
wl = NULL;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue