diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-09 11:12:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-09 11:12:00 -0700 |
commit | 328cfde754c6b30c1249c5b9c12ab6b8faab551e (patch) | |
tree | 90c1b6adefc9e49cf7d1a6546bd4db0d9f714144 /Modules | |
parent | 15d263e95cdbce910ebbb2fc13064330b6000b4b (diff) | |
download | cpython-git-328cfde754c6b30c1249c5b9c12ab6b8faab551e.tar.gz |
bpo-37649: Fix exec_prefix check (GH-14897)
(cherry picked from commit 09090d04ef8d2f4c94157b852d3d530a51e13d22)
Co-authored-by: Orivej Desh <orivej@gmx.fr>
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/getpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c index bfb33316d9..ba8d74b4a0 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -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); |