Huw Davies : webservices/tests: Initialise dictionary to NULL.
Alexandre Julliard
julliard at winehq.org
Tue Sep 6 10:47:31 CDT 2016
Module: wine
Branch: master
Commit: f65b5e354b03b356ae7c3fdca93b0834f8de6ff6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f65b5e354b03b356ae7c3fdca93b0834f8de6ff6
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Sep 6 10:39:25 2016 +0100
webservices/tests: Initialise dictionary to NULL.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/webservices/tests/writer.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dlls/webservices/tests/writer.c b/dlls/webservices/tests/writer.c
index d9c3fb1..ebe72fe 100644
--- a/dlls/webservices/tests/writer.c
+++ b/dlls/webservices/tests/writer.c
@@ -465,6 +465,7 @@ static void test_WsWriteStartAttribute(void)
text.text.textType = WS_XML_TEXT_TYPE_UTF8;
text.value.length = 1;
text.value.bytes = (BYTE *)"0";
+ text.value.dictionary = NULL;
hr = WsWriteText( writer, &text.text, NULL );
ok( hr == S_OK, "got %08x\n", hr );
check_output( writer, "", __LINE__ );
@@ -1130,6 +1131,7 @@ static void test_WsWriteStartCData(void)
text.text.textType = WS_XML_TEXT_TYPE_UTF8;
text.value.bytes = (BYTE *)"<data>";
text.value.length = 6;
+ text.value.dictionary = NULL;
hr = WsWriteText( writer, &text.text, NULL );
ok( hr == S_OK, "got %08x\n", hr );
check_output( writer, "<t><![CDATA[<data>", __LINE__ );
@@ -1818,6 +1820,7 @@ static void test_WsWriteNode(void)
utf8.text.textType = WS_XML_TEXT_TYPE_UTF8;
utf8.value.bytes = (BYTE *)"value";
utf8.value.length = sizeof("value") - 1;
+ utf8.value.dictionary = NULL;
attr.singleQuote = TRUE;
attr.isXmlNs = FALSE;
@@ -1840,6 +1843,7 @@ static void test_WsWriteNode(void)
comment.node.nodeType = WS_XML_NODE_TYPE_COMMENT;
comment.value.bytes = (BYTE *)"comment";
comment.value.length = sizeof("comment") - 1;
+ comment.value.dictionary = NULL;
hr = WsWriteNode( writer, (const WS_XML_NODE *)&comment, NULL );
ok( hr == S_OK, "got %08x\n", hr );
@@ -1857,6 +1861,7 @@ static void test_WsWriteNode(void)
utf8.value.bytes = (BYTE *)"cdata";
utf8.value.length = sizeof("cdata") - 1;
+ utf8.value.dictionary = NULL;
text.node.nodeType = WS_XML_NODE_TYPE_TEXT;
text.text = &utf8.text;
hr = WsWriteNode( writer, (const WS_XML_NODE *)&text, NULL );
@@ -1868,6 +1873,7 @@ static void test_WsWriteNode(void)
utf8.value.bytes = (BYTE *)"text";
utf8.value.length = sizeof("text") - 1;
+ utf8.value.dictionary = NULL;
hr = WsWriteNode( writer, (const WS_XML_NODE *)&text, NULL );
ok( hr == S_OK, "got %08x\n", hr );
@@ -2210,6 +2216,7 @@ static void test_WsWriteText(void)
utf8.text.textType = WS_XML_TEXT_TYPE_UTF8;
utf8.value.bytes = (BYTE *)"test";
utf8.value.length = 4;
+ utf8.value.dictionary = NULL;
hr = WsWriteText( writer, &utf8.text, NULL );
todo_wine ok( hr == WS_E_INVALID_FORMAT, "got %08x\n", hr );
More information about the wine-cvs
mailing list