webservices/tests: Initialise dictionary to NULL.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2016-09-06 10:39:25 +01:00 committed by Alexandre Julliard
parent 34a0c122cb
commit f65b5e354b
1 changed files with 7 additions and 0 deletions

View File

@ -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 );