diff --git a/dlls/xmllite/reader.c b/dlls/xmllite/reader.c index fb06200f694..f74b8156ede 100644 --- a/dlls/xmllite/reader.c +++ b/dlls/xmllite/reader.c @@ -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 diff --git a/dlls/xmllite/tests/reader.c b/dlls/xmllite/tests/reader.c index 992d15c31de..010802722d8 100644 --- a/dlls/xmllite/tests/reader.c +++ b/dlls/xmllite/tests/reader.c @@ -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);