parser/inpeval.c, bug fix, incorrect restore of `*line'

This commit is contained in:
rlar 2015-02-28 19:03:04 +01:00
parent 2cbc84ccd1
commit 12e8ee750b
1 changed files with 2 additions and 4 deletions

View File

@ -53,12 +53,10 @@ double INPevaluate(char **line, int *error, int gobble)
if ((*here == 0) || ((!(isdigit(*here))) && (*here != '.'))) {
/* number looks like just a sign! */
*error = 1;
/* back out the 'gettok' operation */
*line = tmpline;
if (gobble) {
FREE(token);
} else {
*line = here;
/* back out the 'gettok' operation */
*line = tmpline;
}
return (0);
}