From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 9 Sep 2019 17:59:18 +0000 (-0700) Subject: bpo-37649: Fix exec_prefix check (GH-14897) X-Git-Tag: v3.8.0rc1~245 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e83296314583ba9c7952d6539c63aae803a197ae;p=python 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 5f80738188..dc0574851c 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -1142,7 +1142,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);