]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
closes bpo-39859: Do not downcast result of hstrerror (GH-18790)
authorAndy Lester <andy@petdance.com>
Fri, 6 Mar 2020 04:43:36 +0000 (22:43 -0600)
committerGitHub <noreply@github.com>
Fri, 6 Mar 2020 04:43:36 +0000 (20:43 -0800)
commite63117a84ef11083be86db7afb2ac2789491ca09
tree977ce423744f8be0015a7a7e2ab7ca9ecd27f872
parentda4d656e951b00580d135ae6345656ecedf9d8d4
closes bpo-39859: Do not downcast result of hstrerror (GH-18790)

set_herror builds a string by calling hstrerror but downcasts its return value to char *.  It should be const char *.

Automerge-Triggered-By: @benjaminp
Modules/socketmodule.c