From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 9 Sep 2019 18:12:00 +0000 (-0700) Subject: bpo-37649: Fix exec_prefix check (GH-14897) X-Git-Tag: v3.7.5rc1~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=328cfde754c6b30c1249c5b9c12ab6b8faab551e;p=thirdparty%2FPython%2Fcpython.git bpo-37649: Fix exec_prefix check (GH-14897) (cherry picked from commit 09090d04ef8d2f4c94157b852d3d530a51e13d22) Co-authored-by: Orivej Desh --- diff --git a/Modules/getpath.c b/Modules/getpath.c index bfb33316d969..ba8d74b4a042 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);