Fix a warning from gcc by adding a missed const qualifier.

This commit is contained in:
Hye-Shik Chang 2006-01-04 01:30:17 +00:00
parent 6bfd8de9e6
commit 23f391c6a1

View File

@ -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);