]> granicus.if.org Git - python/commitdiff
bpo-37649: Fix exec_prefix check (GH-14897)
authorOrivej Desh <orivej@gmx.fr>
Mon, 9 Sep 2019 16:05:21 +0000 (16:05 +0000)
committerSteve Dower <steve.dower@python.org>
Mon, 9 Sep 2019 16:05:21 +0000 (09:05 -0700)
Modules/getpath.c

index 2372172a7b9fb7ddd67bbc78de9151456c10488d..36f9860ea13174f913e732a9c429067c2df8987e 100644 (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);