From 6d4fc501bd4aecdb0c382d0e0d262f3040dee335 Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 29 Apr 2016 21:20:35 +0200 Subject: [PATCH] numparam/xpressn.c, evaluate_variable(), cleanup `for' loop --- src/frontend/numparam/xpressn.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index c9efdab1c..c5b2cd633 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1109,11 +1109,10 @@ evaluate(dico_t *dico, SPICE_DSTRINGPTR qstr_p, char *t, unsigned char mode) numeric = 1; } else if (entry->tp == NUPA_STRING) { /* suppose source text "..." at */ - int j = entry->ivl; + int j = entry->ivl + 1; for (;;) { - j++; - char c = /* ibf->bf[j]; */ entry->sbbase[j]; + char c = entry->sbbase[j++]; if ((c == '\"') || (c < ' ')) break;