mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00: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 a new issue