nupa_substitute(), cleanup for loops

This commit is contained in:
rlar
2018-02-17 19:15:55 +01:00
parent ad603be96f
commit 6a003e52d1
+2 -8
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;