From 521fd16c11954ab65046572d371f05d5fea8554a Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 10 Jul 2016 17:29:03 +0200 Subject: [PATCH] INPparseNumMod(), #10/14, don't fall through into the 'default:' instead, duplicate the code of the 'default:' and break --- src/spicelib/parser/inpgmod.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/spicelib/parser/inpgmod.c b/src/spicelib/parser/inpgmod.c index 4431378a1..f6db24a4c 100644 --- a/src/spicelib/parser/inpgmod.c +++ b/src/spicelib/parser/inpgmod.c @@ -376,7 +376,9 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess } cardType = lastType; while (*line == '+') line++; /* Skip leading '+'s */ - /* FALL THRU when continuing a card */ + lastType = cardType; + // cardType is not used downwards from here + break; default: lastType = cardType; // cardType is not used downwards from here