getword(), transform while loop

This commit is contained in:
rlar 2016-05-01 17:34:28 +02:00
parent d6801c0cf1
commit cc452a4c90
1 changed files with 2 additions and 2 deletions

View File

@ -1320,9 +1320,9 @@ static const char *
getword(const char *s, const char * const s_end, SPICE_DSTRINGPTR tstr_p)
/* isolate a word from s after position "after". return i= last read+1 */
{
do
s++;
while ((s < s_end) && !alfa(s[-1]))
s++;
while ((s < s_end) && !alfa(s[-1]));
spice_dstring_reinit(tstr_p);