webservices: Reset the attribute index in read_element.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Hans Leidekker 2016-02-10 15:02:00 +01:00 committed by Alexandre Julliard
parent 46393a3f86
commit 6449cb3b67
1 changed files with 2 additions and 0 deletions

View File

@ -962,6 +962,7 @@ static HRESULT read_element( struct reader *reader )
hr = E_OUTOFMEMORY;
if (!(elem->ns = alloc_xml_string( NULL, 0 ))) goto error;
reader->current_attr = 0;
for (;;)
{
read_skip_whitespace( reader );
@ -972,6 +973,7 @@ static HRESULT read_element( struct reader *reader )
free_attribute( attr );
goto error;
}
reader->current_attr++;
}
read_skip_whitespace( reader );