From: Anthony Wee Date: Mon, 6 Jan 2020 16:57:34 +0000 (-0800) Subject: bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818) X-Git-Tag: v3.9.0a3~133 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b79dc9200a19ecbac667111dffd58e314be02a8;p=thirdparty%2FPython%2Fcpython.git bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818) --- diff --git a/Python/pathconfig.c b/Python/pathconfig.c index 363b7686bc45..6abc648769f7 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(); }