wininet: Initialize path buffer in InternetSetCookie.

This commit is contained in:
Hans Leidekker 2007-11-18 18:29:37 +01:00 committed by Alexandre Julliard
parent f874126bec
commit a0c3816dbf
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ BOOL WINAPI InternetSetCookieW(LPCWSTR lpszUrl, LPCWSTR lpszCookieName,
return FALSE;
}
hostName[0] = 0;
hostName[0] = path[0] = 0;
ret = COOKIE_crackUrlSimple(lpszUrl, hostName, sizeof(hostName)/sizeof(hostName[0]), path, sizeof(path)/sizeof(path[0]));
if (!ret || !hostName[0]) return FALSE;