Skip to content

Commit

Permalink
bpo-45582: framework build: modPath must not be const (GH-29944)
Browse files Browse the repository at this point in the history
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
  • Loading branch information
tiran and ronaldoussoren authored Dec 6, 2021
1 parent af1db4e commit f16f93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/getpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ library_to_dict(PyObject *dict, const char *key)
}
#elif defined(WITH_NEXT_FRAMEWORK) && !defined(PY_BOOTSTRAP_PYTHON)
// _bootstrap_python does not use framework and crashes
static const char modPath[MAXPATHLEN + 1];
static char modPath[MAXPATHLEN + 1];
static int modPathInitialized = -1;
if (modPathInitialized < 0) {
NSModule pythonModule;
Expand Down

0 comments on commit f16f93e

Please sign in to comment.