findsubname(), drop `ls_ptr'

This commit is contained in:
rlar 2017-11-22 22:54:39 +01:00
parent d647a84e66
commit 784ad14d60
1 changed files with 1 additions and 2 deletions

View File

@ -153,9 +153,8 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
{
SPICE_DSTRING name; /* extract a name */
char * const s = spice_dstring_value(dstr_p);
char * const ls_ptr = s + spice_dstring_length(dstr_p);
char *p = ls_ptr;
char *p = s + spice_dstring_length(dstr_p);
spice_dstring_init(&name);
while (p > s) {