findsubname(), use skip_back_ws()

This commit is contained in:
rlar 2017-11-23 18:33:57 +01:00
parent 270e0b6154
commit cbd38fdc9c
1 changed files with 1 additions and 3 deletions

View File

@ -161,10 +161,8 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
while (p > s) { while (p > s) {
/* skip space, then non-space */ /* skip space, then non-space */
while ((p > s) && (p[-1] <= ' ')) char *p_end = p = skip_back_ws(p, s); /* at p_end: space */
p--;
char *p_end = p; /* at p_end: space */
while ((p > s) && (p[-1] > ' ')) { while ((p > s) && (p[-1] > ' ')) {
if (p[-1] == '}') { if (p[-1] == '}') {