mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
Fix a warning from gcc by adding a missed const qualifier.
This commit is contained in:
parent
6bfd8de9e6
commit
23f391c6a1
@ -130,7 +130,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
|
||||
handle = dlopen(pathname, dlopenflags);
|
||||
|
||||
if (handle == NULL) {
|
||||
char *error = dlerror();
|
||||
const char *error = dlerror();
|
||||
if (error == NULL)
|
||||
error = "unknown dlopen() error";
|
||||
PyErr_SetString(PyExc_ImportError, error);
|
||||
|
Loading…
Reference in New Issue
Block a user