stripbraces(), unuse local `s'
`s0' does not change in the area of interest and has the same value
This commit is contained in:
parent
cb859060e0
commit
e4e408d656
|
|
@ -104,9 +104,6 @@ stripbraces(SPICE_DSTRINGPTR dstr_p)
|
||||||
|
|
||||||
while ((brace = strchr(s0 + i, '{')) != NULL) {
|
while ((brace = strchr(s0 + i, '{')) != NULL) {
|
||||||
|
|
||||||
char * const s = s0;
|
|
||||||
|
|
||||||
|
|
||||||
/* something to strip */
|
/* something to strip */
|
||||||
const char *j_ptr = brace + 1;
|
const char *j_ptr = brace + 1;
|
||||||
nest = 1;
|
nest = 1;
|
||||||
|
|
@ -120,7 +117,7 @@ stripbraces(SPICE_DSTRINGPTR dstr_p)
|
||||||
j_ptr++;
|
j_ptr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
pscopy(&tstr, s, 0, (int) (brace - s));
|
pscopy(&tstr, s0, 0, (int) (brace - s0));
|
||||||
|
|
||||||
if (brace[-1] > ' ')
|
if (brace[-1] > ' ')
|
||||||
cadd(&tstr, ' ');
|
cadd(&tstr, ' ');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue