nupa_substitute(), cleanup for loops

This commit is contained in:
rlar 2016-05-14 15:47:28 +02:00
parent ad603be96f
commit 6a003e52d1
1 changed files with 2 additions and 8 deletions

View File

@ -1275,15 +1275,9 @@ nupa_substitute(dico_t *dico, const char *s, char *r)
/* simple identifier may also be string? */
const char *kptr = s;
for (; kptr < s_end; kptr++) {
char d;
d = *kptr;
if (d <= ' ') {
for (; kptr < s_end; kptr++)
if (*kptr <= ' ')
break;
}
}
err = evaluate_variable(dico, &qstr, s - 1, kptr + 1 - 1);
s = kptr + 1 - 1;