]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45582: framework build: modPath must not be const (GH-29944)
authorChristian Heimes <christian@python.org>
Mon, 6 Dec 2021 18:13:12 +0000 (20:13 +0200)
committerGitHub <noreply@github.com>
Mon, 6 Dec 2021 18:13:12 +0000 (19:13 +0100)
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Modules/getpath.c

index 2e46226a085311b1cedd4254f35554043ca36044..9ce7260f77826102dde900bdff5f1aa5ef0ece97 100644 (file)
@@ -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;