wininet: Avoid empty initializer braces.
This commit is contained in:
parent
5408c5ea34
commit
d742f6e821
@ -522,11 +522,12 @@ static void free_global_proxy( void )
|
|||||||
static BOOL parse_proxy_url( proxyinfo_t *info, const WCHAR *url )
|
static BOOL parse_proxy_url( proxyinfo_t *info, const WCHAR *url )
|
||||||
{
|
{
|
||||||
static const WCHAR fmt[] = {'%','s',':','%','u',0};
|
static const WCHAR fmt[] = {'%','s',':','%','u',0};
|
||||||
WCHAR hostname[INTERNET_MAX_HOST_NAME_LENGTH] = {};
|
WCHAR hostname[INTERNET_MAX_HOST_NAME_LENGTH];
|
||||||
WCHAR username[INTERNET_MAX_USER_NAME_LENGTH] = {};
|
WCHAR username[INTERNET_MAX_USER_NAME_LENGTH];
|
||||||
WCHAR password[INTERNET_MAX_PASSWORD_LENGTH] = {};
|
WCHAR password[INTERNET_MAX_PASSWORD_LENGTH];
|
||||||
URL_COMPONENTSW uc;
|
URL_COMPONENTSW uc;
|
||||||
|
|
||||||
|
hostname[0] = username[0] = password[0] = 0;
|
||||||
memset( &uc, 0, sizeof(uc) );
|
memset( &uc, 0, sizeof(uc) );
|
||||||
uc.dwStructSize = sizeof(uc);
|
uc.dwStructSize = sizeof(uc);
|
||||||
uc.lpszHostName = hostname;
|
uc.lpszHostName = hostname;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user