diff --git a/src/spicelib/devices/cktfinddev.c b/src/spicelib/devices/cktfinddev.c index fb7650b68..5e8b49a15 100644 --- a/src/spicelib/devices/cktfinddev.c +++ b/src/spicelib/devices/cktfinddev.c @@ -36,7 +36,7 @@ CKTfndDev(void *Ckt, int *type, void **fast, IFuid name, void *modfast, IFuid mo if (p->GENname == name) { if (fast != 0) *(GENinstance **)fast = p; - if(modfast) if (type) + if (type) *type = p->GENmodPtr->GENmodType; return OK; }