stripbraces(), unuse local `s'

`s0' does not change in the area of interest and has the same value
This commit is contained in:
rlar
2018-02-17 19:15:55 +01:00
parent cb859060e0
commit e4e408d656
+1 -4
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, ' ');