wininet: Initialize path buffer in InternetSetCookie.
authorHans Leidekker <hans@it.vu.nl>
Sun, 18 Nov 2007 17:29:37 +0000 (18:29 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 19 Nov 2007 12:52:26 +0000 (13:52 +0100)
dlls/wininet/cookie.c

index b44c4a6..2eef2d9 100644 (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;