Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23f391c

Browse files
committed
Fix a warning from gcc by adding a missed const qualifier.
1 parent 6bfd8de commit 23f391c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/dynload_shlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
130130
handle = dlopen(pathname, dlopenflags);
131131

132132
if (handle == NULL) {
133-
char *error = dlerror();
133+
const char *error = dlerror();
134134
if (error == NULL)
135135
error = "unknown dlopen() error";
136136
PyErr_SetString(PyExc_ImportError, error);

0 commit comments

Comments
 (0)