From 0b1c79172c3489a474d612c632897e41edc48b24 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 10 Jul 2016 18:24:49 +0200 Subject: [PATCH] INPparseNumMod(), #13/14, invert 'if' statement --- src/spicelib/parser/inpgmod.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/spicelib/parser/inpgmod.c b/src/spicelib/parser/inpgmod.c index 68e44b9ed..cb82f31b1 100644 --- a/src/spicelib/parser/inpgmod.c +++ b/src/spicelib/parser/inpgmod.c @@ -405,7 +405,11 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess } } } - if (info) { /* parse the rest of this line */ + + if (!info) + continue; + + /* parse the rest of this line */ while (*line) { /* Strip leading carat from booleans */ if (*line == '^') { @@ -447,7 +451,6 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess } FREE(parm); } - } } *errMessage = err; return( 0 );