From 027fb7e9e8121c3f10b47d5bd78110de8e6c09c1 Mon Sep 17 00:00:00 2001 From: Giles Atkinson <“gatk555@gmail.com”> Date: Sat, 8 Feb 2025 15:28:20 +0000 Subject: [PATCH] Code to suppress a spurious warning of a non-existent parameter, missed from e858ca9465. --- src/xspice/mif/mifgetmod.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xspice/mif/mifgetmod.c b/src/xspice/mif/mifgetmod.c index 2a43d9986..f58806616 100644 --- a/src/xspice/mif/mifgetmod.c +++ b/src/xspice/mif/mifgetmod.c @@ -198,6 +198,8 @@ char *MIFgetMod( num_pars = *device->numModelParms; while (*line != '\0') { INPgetTok(&line, &parm, 1); + if (!parm || !*parm) // May be closing ')'. + break; for (j = 0; j < num_pars; j++) { if (strcmp(parm, device->modelParms[j].keyword) == 0) { err1 = NULL;