[kdbus] Update kdbus interface header (commit: c34e65633b4e)
[platform/upstream/glib.git] / gio / ginetsocketaddress.c
index b2a8a2f..5cf26f7 100644 (file)
@@ -361,7 +361,9 @@ g_inet_socket_address_new_from_string (const char *address,
 
       if (G_UNLIKELY (g_once_init_enter (&hints)))
         {
+          hints_struct.ai_family = AF_UNSPEC;
           hints_struct.ai_socktype = SOCK_STREAM;
+          hints_struct.ai_protocol = 0;
           hints_struct.ai_flags = AI_NUMERICHOST;
           g_once_init_leave (&hints, &hints_struct);
         }