Commit 55687512 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix missing initializer warning

parent 379e3d26
......@@ -550,9 +550,10 @@ static int SocksHandshakeTCP( vlc_object_t *p_obj,
if( i_socks_version == 4 )
{
struct addrinfo hints = { 0 }, *p_res;
struct addrinfo hints, *p_res;
/* v4 only support ipv4 */
memset (&hints, 0, sizeof (hints));
hints.ai_family = AF_INET;
if( vlc_getaddrinfo( p_obj, psz_host, 0, &hints, &p_res ) )
return VLC_EGENERIC;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment