device.c, bug fix 342, prevent crash

This commit is contained in:
h_vogt 2017-04-11 19:18:15 +02:00 committed by rlar
parent 8f86be7deb
commit 526aa79f01
1 changed files with 1 additions and 0 deletions

View File

@ -1164,6 +1164,7 @@ com_alter_common(wordlist *wl, int do_model)
wl = wl->wl_next;
step = -1;
wl2 = wlin;
wl = NULL;
} else if (strlen(argument) > 1) {
wl2 = wl_cons(copy_substring(argument, eqptr),
wl_cons(copy("="),