stripbraces(), fix split personality of `i'
This commit is contained in:
parent
98ec9c2fa3
commit
8d0df0d024
|
|
@ -140,10 +140,11 @@ stripbraces(SPICE_DSTRINGPTR dstr_p)
|
||||||
if (s[j] >= ' ')
|
if (s[j] >= ' ')
|
||||||
cadd(&tstr, ' ');
|
cadd(&tstr, ' ');
|
||||||
|
|
||||||
i = spice_dstring_length(&tstr);
|
int ilen = spice_dstring_length(&tstr);
|
||||||
sadd(&tstr, s + j);
|
sadd(&tstr, s + j);
|
||||||
scopyd(dstr_p, &tstr);
|
scopyd(dstr_p, &tstr);
|
||||||
s = spice_dstring_value(dstr_p);
|
s = spice_dstring_value(dstr_p);
|
||||||
|
i = ilen;
|
||||||
ls = spice_dstring_length(dstr_p);
|
ls = spice_dstring_length(dstr_p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue