We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08821ee commit 5230b61Copy full SHA for 5230b61
Modules/getpath.c
@@ -807,7 +807,6 @@ static int
807
library_to_dict(PyObject *dict, const char *key)
808
{
809
#ifdef Py_ENABLE_SHARED
810
- char path[MAXPATHLEN + 1];
811
812
#ifdef MS_WINDOWS
813
extern HMODULE PyWin_DLLhModule;
@@ -817,6 +816,7 @@ library_to_dict(PyObject *dict, const char *key)
817
816
#endif
818
819
#if HAVE_DLADDR
+ char path[MAXPATHLEN + 1];
820
Dl_info libpython_info;
821
if (dladdr(&Py_Initialize, &libpython_info) && libpython_info.dli_fname) {
822
strncpy(path, libpython_info.dli_fname, MAXPATHLEN);
0 commit comments