Fixes Clang -Wuninitialized-const-pointer warning.
We could also just have `memset()` initialization, but passing a fully valid URL makes it clear that URL is not the reason for `WsEncodeUrl` failures.
From: Jacek Caban jacek@codeweavers.com
Fixes Clang -Wuninitialized-const-pointer warning. --- dlls/webservices/tests/url.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/webservices/tests/url.c b/dlls/webservices/tests/url.c index 054752c0665..377f50bacee 100644 --- a/dlls/webservices/tests/url.c +++ b/dlls/webservices/tests/url.c @@ -245,6 +245,10 @@ static void test_WsEncodeUrl(void) hr = WsEncodeUrl( NULL, 0, heap, &str, NULL ); ok( hr == E_INVALIDARG, "got %#lx\n", hr );
+ memset( &url, 0, sizeof(url) ); + url.url.scheme = WS_URL_HTTP_SCHEME_TYPE; + url.host.chars = (WCHAR *)L"host"; + url.host.length = 4; hr = WsEncodeUrl( (const WS_URL *)&url, 0, NULL, &str, NULL ); ok( hr == E_INVALIDARG, "got %#lx\n", hr );
This merge request was approved by Hans Leidekker.