Thomas Faber : wininet: Avoid empty initializer braces.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Feb 17 10:14:40 CST 2015
Module: wine
Branch: master
Commit: d742f6e821e819efcb5fe24f8fe331d98ad47c86
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d742f6e821e819efcb5fe24f8fe331d98ad47c86
Author: Thomas Faber <thomas.faber at reactos.org>
Date: Sat Feb 14 09:27:12 2015 +0100
wininet: Avoid empty initializer braces.
---
dlls/wininet/internet.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index 65bb434..7eddb2c 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -522,11 +522,12 @@ static void free_global_proxy( void )
static BOOL parse_proxy_url( proxyinfo_t *info, const WCHAR *url )
{
static const WCHAR fmt[] = {'%','s',':','%','u',0};
- WCHAR hostname[INTERNET_MAX_HOST_NAME_LENGTH] = {};
- WCHAR username[INTERNET_MAX_USER_NAME_LENGTH] = {};
- WCHAR password[INTERNET_MAX_PASSWORD_LENGTH] = {};
+ WCHAR hostname[INTERNET_MAX_HOST_NAME_LENGTH];
+ WCHAR username[INTERNET_MAX_USER_NAME_LENGTH];
+ WCHAR password[INTERNET_MAX_PASSWORD_LENGTH];
URL_COMPONENTSW uc;
+ hostname[0] = username[0] = password[0] = 0;
memset( &uc, 0, sizeof(uc) );
uc.dwStructSize = sizeof(uc);
uc.lpszHostName = hostname;
More information about the wine-cvs
mailing list