bpo-37649: Fix exec_prefix check (GH-14897)

This commit is contained in:
Orivej Desh 2019-09-09 16:05:21 +00:00 committed by Steve Dower
parent fb6807b043
commit 09090d04ef

View file

@ -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);