findsubname(), decrement later
This commit is contained in:
parent
01eb593ca4
commit
31ad5ca970
|
|
@ -174,11 +174,11 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
|
||||||
nest--;
|
nest--;
|
||||||
else if (p[-1] == '}')
|
else if (p[-1] == '}')
|
||||||
nest++;
|
nest++;
|
||||||
|
|
||||||
p--;
|
|
||||||
if (nest <= 0) {
|
if (nest <= 0) {
|
||||||
|
p--;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
p--;
|
||||||
}
|
}
|
||||||
p_end = p; /* p_end points to '{' */
|
p_end = p; /* p_end points to '{' */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue