winhttp: Initialize a return variable.
commit80a8c8d259411c8649b4bb60367041aa0d5d75b5
authorZhiyi Zhang <zzhang@codeweavers.com>
Tue, 24 Dec 2019 09:18:07 +0000 (24 17:18 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 24 Dec 2019 10:50:55 +0000 (24 11:50 +0100)
tree18f3147898227ca39c54b2dcb4b64fd8cb947614
parent59e52108d5b83b7b549a3d4bc459887b8c7549c1
winhttp: Initialize a return variable.

When getaddrinfo() failed in detect_autoproxyconfig_url_dns(),
an undefined variable is passed to WinHttpDetectAutoProxyConfigUrl(),
causing applications to receive a wrong url.

This is a regression from 4ad4173e3a715d5bd27bedc164718cef9cafe0a4.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48349
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winhttp/session.c