From 4503df419a790610f6b10d8ac0f2fc5c5da6928a Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Wed, 7 Nov 2007 13:49:47 -0800 Subject: [PATCH] Fully initialize a variable --- dlls/wininet/cookie.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c index 31a0e19..4451b17 100644 --- a/dlls/wininet/cookie.c +++ b/dlls/wininet/cookie.c @@ -176,13 +176,9 @@ static cookie_domain *COOKIE_addDomain(L static void COOKIE_crackUrlSimple(LPCWSTR lpszUrl, LPWSTR hostName, int hostNameLen, LPWSTR path, int pathLen) { - URL_COMPONENTSW UrlComponents; + URL_COMPONENTSW UrlComponents = { 0 }; - UrlComponents.lpszExtraInfo = NULL; - UrlComponents.lpszPassword = NULL; - UrlComponents.lpszScheme = NULL; UrlComponents.lpszUrlPath = path; - UrlComponents.lpszUserName = NULL; UrlComponents.lpszHostName = hostName; UrlComponents.dwHostNameLength = hostNameLen; UrlComponents.dwUrlPathLength = pathLen; -- 1.4.1