stripbraces(), drop `t_p', which points to a copy of `s'

This commit is contained in:
rlar 2017-11-13 18:56:37 +01:00
parent 8d0df0d024
commit e2c2140a52
1 changed files with 1 additions and 4 deletions

View File

@ -94,7 +94,6 @@ stripbraces(SPICE_DSTRINGPTR dstr_p)
{
int n, i, nest, ls, j;
char *s; /* value of dynamic string */
char *t_p; /* value of t dynamic string */
char *brace;
SPICE_DSTRING tstr; /* temporary dynamic string */
@ -124,9 +123,7 @@ stripbraces(SPICE_DSTRINGPTR dstr_p)
pscopy(&tstr, s, 0, i);
t_p = spice_dstring_value(&tstr);
if (t_p[i - 1] > ' ')
if (s[i - 1] > ' ')
cadd(&tstr, ' ');
cadd(&tstr, ' ');