diff --git a/src/spicelib/parser/inpgmod.c b/src/spicelib/parser/inpgmod.c index d62e423e2..c8e48afa0 100644 --- a/src/spicelib/parser/inpgmod.c +++ b/src/spicelib/parser/inpgmod.c @@ -248,7 +248,7 @@ char *INPgetMod(void *ckt, char *name, INPmodel ** model, INPtables * tab) printf("In INPgetMod, comparing %s against stored model %s . . . \n", name, (modtmp)->INPmodName); #endif - if (strstr((modtmp)->INPmodName, name) >= 0) { + if (strstr((modtmp)->INPmodName, name) != NULL) { /* found the model in question - now instantiate if necessary */ /* and return an appropriate pointer to it */