findsubname(), decrement later

This commit is contained in:
rlar
2018-02-17 19:15:55 +01:00
parent 01eb593ca4
commit 31ad5ca970
+2 -2
View File
@@ -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 '{' */