stripbraces(), unuse local `s'

`s0' does not change in the area of interest and has the same value
This commit is contained in:
rlar 2017-11-17 17:28:52 +01:00
parent cb859060e0
commit e4e408d656
1 changed files with 1 additions and 4 deletions

View File

@ -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, ' ');