stripbraces(), fix split personality of `i'

This commit is contained in:
rlar 2017-11-13 18:48:30 +01:00
parent 98ec9c2fa3
commit 8d0df0d024
1 changed files with 2 additions and 1 deletions

View File

@ -140,10 +140,11 @@ stripbraces(SPICE_DSTRINGPTR dstr_p)
if (s[j] >= ' ')
cadd(&tstr, ' ');
i = spice_dstring_length(&tstr);
int ilen = spice_dstring_length(&tstr);
sadd(&tstr, s + j);
scopyd(dstr_p, &tstr);
s = spice_dstring_value(dstr_p);
i = ilen;
ls = spice_dstring_length(dstr_p);
}