From 57f9804db6e0197ebf25d78d683a53b48b15f041 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 4 Feb 2018 13:36:35 +0100 Subject: [PATCH] devices/adms/admst/ngspiceMODULEdel.c.xml, bug fix, endless loop A missing update of "prev" would cause endless looping when searching for a device instance. introduced in commit: > commit 38e68869a29012c2813b027f2ffbc84408b69bbb > Date: Wed Mar 1 14:30:24 2006 +0000 > > Added mdel, del and dest functions to interface. --- src/spicelib/devices/adms/admst/ngspiceMODULEdel.c.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spicelib/devices/adms/admst/ngspiceMODULEdel.c.xml b/src/spicelib/devices/adms/admst/ngspiceMODULEdel.c.xml index 4357baa81..3aca61753 100644 --- a/src/spicelib/devices/adms/admst/ngspiceMODULEdel.c.xml +++ b/src/spicelib/devices/adms/admst/ngspiceMODULEdel.c.xml @@ -63,6 +63,7 @@ int $(module)delete(GENmodel *inModel, IFuid name, GENinstance **inInst) FREE(here); return(OK); } + prev = &(here->$(module)nextInstance); } }