diff --git a/src/frontend/numparam/spicenum.c b/src/frontend/numparam/spicenum.c index dd089a6a9..091dd7a01 100644 --- a/src/frontend/numparam/spicenum.c +++ b/src/frontend/numparam/spicenum.c @@ -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 '{' */