findsubname(), decrement later

This commit is contained in:
rlar 2017-11-22 22:35:00 +01:00
parent 01eb593ca4
commit 31ad5ca970
1 changed files with 2 additions and 2 deletions

View File

@ -174,11 +174,11 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
nest--;
else if (p[-1] == '}')
nest++;
p--;
if (nest <= 0) {
p--;
break;
}
p--;
}
p_end = p; /* p_end points to '{' */