From 18f69116e82a64fb1817d602920bf16054677f1e Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 5 Nov 2017 20:23:11 +0100 Subject: [PATCH] nupa_substitute(), verify `s' beeing unused now --- src/frontend/numparam/xpressn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index 010dfc1e0..352dc7e7e 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1187,7 +1187,7 @@ insertnumber(dico_t *dico, int i, char *s, SPICE_DSTRINGPTR ustr_p) bool -nupa_substitute(dico_t *dico, char * const s, char *r) +nupa_substitute(dico_t *dico, char * const s_, char *r) /* s: pointer to original source line. r: pointer to result line, already heavily modified wrt s anywhere we find a 10-char numstring in r, substitute it. @@ -1204,8 +1204,8 @@ nupa_substitute(dico_t *dico, char * const s, char *r) spice_dstring_init(&qstr); spice_dstring_init(&tstr); const char *iptr; - iptr = s; - const char * const s_end = strchr(s, '\0'); + iptr = s_; + const char * const s_end = strchr(s_, '\0'); const char *kptr; while ((iptr < s_end) && !err) {