xmllite: Also clear the attr pointer in reader_clear_attrs.

This commit is contained in:
Dmitry Timoshkov 2014-02-21 11:35:05 +09:00 committed by Alexandre Julliard
parent 3218cc077e
commit 529d9ea922
2 changed files with 1 additions and 1 deletions

View File

@ -368,6 +368,7 @@ static void reader_clear_attrs(xmlreader *reader)
}
list_init(&reader->attrs);
reader->attr_count = 0;
reader->attr = NULL;
}
/* attribute data holds pointers to buffer data, so buffer shrink is not possible

View File

@ -838,7 +838,6 @@ todo_wine
ok(count == 0, "expected 0, got %d\n", count);
ret = IXmlReader_IsEmptyElement(reader);
todo_wine
ok(ret, "element should be empty\n");
hr = IXmlReader_GetValue(reader, &val, NULL);