From 670d87a5891e8598b66d618bf4e553cf98fb2d18 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 8 Jun 2017 09:11:21 +0200 Subject: [PATCH] device.c, #2/19, 'wl' will not be used any more --- src/frontend/device.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/frontend/device.c b/src/frontend/device.c index 1e4fcc621..f5e31e631 100644 --- a/src/frontend/device.c +++ b/src/frontend/device.c @@ -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; }