From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 6 Jan 2020 17:17:36 +0000 (-0800) Subject: bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818) X-Git-Tag: v3.8.2rc1~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9a43c221bf3896ed1d1c2eee2531b7121cf78e4;p=thirdparty%2FPython%2Fcpython.git bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818) (cherry picked from commit 7b79dc9200a19ecbac667111dffd58e314be02a8) Co-authored-by: Anthony Wee --- diff --git a/Python/pathconfig.c b/Python/pathconfig.c index 7f3fdcc103f7..258ff613a066 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(); }