Correct strstr compare

This commit is contained in:
dwarning 2009-02-23 19:38:57 +00:00
parent 9e5f6f89c5
commit 3931562d98
1 changed files with 1 additions and 1 deletions

View File

@ -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 */