]> git.ipfire.org Git - thirdparty/curl.git/commit
url: silence MSVC warning 5638/head
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 2 Jul 2020 11:23:31 +0000 (13:23 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 2 Jul 2020 11:31:22 +0000 (13:31 +0200)
commit19b96ba38501fd816930546cb26d55b6f31aa26f
tree4ddce3062f59cc59f12b2c10015163303e947c72
parent01afe4e1af4de7f85d8ad7757bed6bd0c5b6b754
url: silence MSVC warning

Since commit f3d501dc678, if proxy support is disabled, MSVC warns:
url.c : warning C4701: potentially uninitialized local variable
'hostaddr' used
url.c : error C4703: potentially uninitialized local pointer variable
'hostaddr' used

That could actually only happen if both `conn->bits.proxy` and
`CURL_DISABLE_PROXY` were enabled.
Initialize it to NULL to silence the warning.

Closes https://github.com/curl/curl/pull/5638
lib/url.c