stripbraces(), drop `t_p', which points to a copy of `s'
This commit is contained in:
parent
8d0df0d024
commit
e2c2140a52
|
|
@ -94,7 +94,6 @@ stripbraces(SPICE_DSTRINGPTR dstr_p)
|
||||||
{
|
{
|
||||||
int n, i, nest, ls, j;
|
int n, i, nest, ls, j;
|
||||||
char *s; /* value of dynamic string */
|
char *s; /* value of dynamic string */
|
||||||
char *t_p; /* value of t dynamic string */
|
|
||||||
char *brace;
|
char *brace;
|
||||||
SPICE_DSTRING tstr; /* temporary dynamic string */
|
SPICE_DSTRING tstr; /* temporary dynamic string */
|
||||||
|
|
||||||
|
|
@ -124,9 +123,7 @@ stripbraces(SPICE_DSTRINGPTR dstr_p)
|
||||||
|
|
||||||
pscopy(&tstr, s, 0, i);
|
pscopy(&tstr, s, 0, i);
|
||||||
|
|
||||||
t_p = spice_dstring_value(&tstr);
|
if (s[i - 1] > ' ')
|
||||||
|
|
||||||
if (t_p[i - 1] > ' ')
|
|
||||||
cadd(&tstr, ' ');
|
cadd(&tstr, ' ');
|
||||||
|
|
||||||
cadd(&tstr, ' ');
|
cadd(&tstr, ' ');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue