]> granicus.if.org Git - curl/commit
schannel: fix compiler warning
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 3 Jan 2019 14:22:44 +0000 (15:22 +0100)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 6 Jan 2019 22:09:19 +0000 (23:09 +0100)
commite939afeb5ceef4310f7066a599f3275982da0f34
tree10fe9f8ad322e20387c426591010036ba4372471
parent1e4ec09a26e58ba62c3a3dd3913939d7f4173809
schannel: fix compiler warning

When building with Unicode on MSVC, the compiler warns about freeing a
pointer to const in Curl_unicodefree. Fix this by declaring it as
non-const and casting the argument to Curl_convert_UTF8_to_tchar to
non-const too, like we do in all other places.

Closes https://github.com/curl/curl/pull/3435
lib/vtls/schannel_verify.c