mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
closes bpo-39630: Update pointers to string literals to be const char *. (GH-18510)
This commit is contained in:
parent
a9edf44a2d
commit
7386a70746
4 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue