From 7386a70746cf9aaf2d95db75d9201fb124f085df Mon Sep 17 00:00:00 2001 From: Andy Lester Date: Thu, 13 Feb 2020 22:42:56 -0600 Subject: closes bpo-39630: Update pointers to string literals to be const char *. (GH-18510) --- Python/errors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/errors.c') diff --git a/Python/errors.c b/Python/errors.c index f11b66e795..61dc597916 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -614,7 +614,7 @@ PyErr_SetFromErrnoWithFilenameObjects(PyObject *exc, PyObject *filenameObject, P #ifndef MS_WINDOWS if (i != 0) { - char *s = strerror(i); + const char *s = strerror(i); message = PyUnicode_DecodeLocale(s, "surrogateescape"); } else { -- cgit v1.2.1