getword(), cleanup

This commit is contained in:
rlar 2016-05-01 17:22:09 +02:00
parent d17bcbc276
commit 3f24aa4ea0
1 changed files with 1 additions and 3 deletions

View File

@ -1460,9 +1460,7 @@ nupa_assignment(dico_t *dico, char *s, char mode)
while ((i < ls) && !error) {
const char *tmp = s + i;
tmp = getword(s, &tstr, tmp);
i = (int) (tmp - s);
i = (int) (getword(s, &tstr, s + i) - s);
t_p = spice_dstring_value(&tstr);
if (t_p[0] == '\0')
error = message(dico, " Identifier expected\n");