diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 0315b5dbc..3e681a440 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -2310,7 +2310,7 @@ static void comment_out_unused_subckt_models(struct card *start_card) char *line = card->line; /* no models embedded in these lines */ - if (strchr(".*vibefghkt", *line)) + if (strchr("*vibefghkt", *line)) continue; /* there is no .subckt, .model or .param inside .control ... .endc */ @@ -2331,6 +2331,10 @@ static void comment_out_unused_subckt_models(struct card *start_card) if (ciprefix(".ends", line) || ciprefix(".eom", line)) processing_subckt = FALSE; + /* no models embedded in these lines */ + if (*line == '.') + continue; + if (!processing_subckt) { if (*line == 'x') { char *subckt_name = get_instance_subckt(line);