[PATCH] winhttp: Make constant 'cookieW' static

Alex Henrie alexhenrie24 at gmail.com
Sun Nov 11 21:52:13 CST 2018


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 dlls/winhttp/cookie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winhttp/cookie.c b/dlls/winhttp/cookie.c
index 0a7f7f0e1c..88365f5949 100644
--- a/dlls/winhttp/cookie.c
+++ b/dlls/winhttp/cookie.c
@@ -344,7 +344,7 @@ BOOL add_cookie_headers( request_t *request )
 
                 if (strstrW( request->path, cookie->path ) == request->path)
                 {
-                    const WCHAR cookieW[] = {'C','o','o','k','i','e',':',' '};
+                    static const WCHAR cookieW[] = {'C','o','o','k','i','e',':',' '};
                     int len, len_cookie = ARRAY_SIZE( cookieW ), len_name = strlenW( cookie->name );
                     WCHAR *header;
 
-- 
2.19.1




More information about the wine-devel mailing list