From 742f34f5961f89f352f656adc98d1bfc222912da Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 16 May 2016 12:03:56 +0200 Subject: [PATCH] nupa_subcktcall(), spice_dstring_value(&tstr) ==> t_p t_p is const and tstr hasn't been modified either, thus still the same value. --- src/frontend/numparam/xpressn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index f4b1240d9..c4f953bae 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1643,10 +1643,10 @@ nupa_subcktcall(dico_t *dico, char *s, char * const x, char * const inst_name) int h = k; while (t_p[k] > ' ') k++; - pscopy(&ustr, spice_dstring_value(&tstr), h, k - h); + pscopy(&ustr, t_p, h, k - h); j = k; } else if (t_p[k] == '{') { - char *aux = spice_dstring_value(&tstr); + char *aux = t_p; const char *tmp = aux + j; tmp = getexpress(NULL, &ustr, tmp); j = (int) (tmp - aux);