Prevent a crash when line is empty

This commit is contained in:
Holger Vogt 2022-06-18 17:04:20 +02:00
parent e460b18f97
commit 1e304c6e53
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++;