]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-37649: Fix exec_prefix check (GH-14897)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 9 Sep 2019 18:12:00 +0000 (11:12 -0700)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2019 18:12:00 +0000 (11:12 -0700)
(cherry picked from commit 09090d04ef8d2f4c94157b852d3d530a51e13d22)

Co-authored-by: Orivej Desh <orivej@gmx.fr>
Modules/getpath.c

index bfb33316d969b9728602990855b42bccb6c90345..ba8d74b4a04272fffa8f2b94cee21f89a590739d 100644 (file)
@@ -909,7 +909,7 @@ calculate_init(PyCalculatePath *calculate,
         return DECODE_LOCALE_ERR("PREFIX define", len);
     }
     calculate->exec_prefix = Py_DecodeLocale(EXEC_PREFIX, &len);
-    if (!calculate->prefix) {
+    if (!calculate->exec_prefix) {
         return DECODE_LOCALE_ERR("EXEC_PREFIX define", len);
     }
     calculate->lib_python = Py_DecodeLocale("lib/python" VERSION, &len);