From 529d9ea9222cff9edfd9e1c7a89befd70f0359f6 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Fri, 21 Feb 2014 11:35:05 +0900 Subject: [PATCH] xmllite: Also clear the attr pointer in reader_clear_attrs. --- dlls/xmllite/reader.c | 1 + dlls/xmllite/tests/reader.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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);