Prevent a crash when line is empty

This commit is contained in:
Holger Vogt 2022-06-18 17:04:20 +02:00
parent eaf8977ba2
commit f78adce641
1 changed files with 3 additions and 0 deletions

View File

@ -7933,6 +7933,9 @@ static void inp_meas_current(struct card *deck)
if (*curr_line == '*')
continue;
if (*curr_line == '\0')
continue;
if (*curr_line == '.') {
if (ciprefix(".subckt", curr_line))
subs++;