Browse Source

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

pre-master-46
rlar 11 years ago
parent
commit
12e8ee750b
  1. 6
      src/spicelib/parser/inpeval.c

6
src/spicelib/parser/inpeval.c

@ -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);
}

Loading…
Cancel
Save