mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-29 01:04:55 +02:00
stripbraces(), unuse local `s'
`s0' does not change in the area of interest and has the same value
This commit is contained in:
@@ -104,9 +104,6 @@ stripbraces(SPICE_DSTRINGPTR dstr_p)
|
||||
|
||||
while ((brace = strchr(s0 + i, '{')) != NULL) {
|
||||
|
||||
char * const s = s0;
|
||||
|
||||
|
||||
/* something to strip */
|
||||
const char *j_ptr = brace + 1;
|
||||
nest = 1;
|
||||
@@ -120,7 +117,7 @@ stripbraces(SPICE_DSTRINGPTR dstr_p)
|
||||
j_ptr++;
|
||||
}
|
||||
|
||||
pscopy(&tstr, s, 0, (int) (brace - s));
|
||||
pscopy(&tstr, s0, 0, (int) (brace - s0));
|
||||
|
||||
if (brace[-1] > ' ')
|
||||
cadd(&tstr, ' ');
|
||||
|
||||
Reference in New Issue
Block a user