Browse Source

device.c, bug #342, prevent crash when using 'alter'

#342 SegFault alter command
https://sourceforge.net/p/ngspice/bugs/342/
pre-master-46
h_vogt 9 years ago
committed by rlar
parent
commit
d06f39f67d
  1. 1
      src/frontend/device.c

1
src/frontend/device.c

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

Loading…
Cancel
Save