From 7b79dc9200a19ecbac667111dffd58e314be02a8 Mon Sep 17 00:00:00 2001 From: Anthony Wee Date: Mon, 6 Jan 2020 08:57:34 -0800 Subject: bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818) --- Python/pathconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/pathconfig.c b/Python/pathconfig.c index 363b7686bc..6abc648769 100644 --- a/Python/pathconfig.c +++ b/Python/pathconfig.c @@ -150,7 +150,7 @@ _PyWideStringList_Join(const PyWideStringList *list, wchar_t sep) static PyStatus _PyPathConfig_InitDLLPath(void) { - if (_Py_dll_path == NULL) { + if (_Py_dll_path != NULL) { /* Already set: nothing to do */ return _PyStatus_OK(); } -- cgit v1.2.1