]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 6 Jan 2020 17:17:36 +0000 (09:17 -0800)
committerGitHub <noreply@github.com>
Mon, 6 Jan 2020 17:17:36 +0000 (09:17 -0800)
(cherry picked from commit 7b79dc9200a19ecbac667111dffd58e314be02a8)

Co-authored-by: Anthony Wee <awee@box.com>
Python/pathconfig.c

index 7f3fdcc103f7b01eb19a08679ff36d078351d420..258ff613a066c1ce2828ab817d8e5be2c17d2146 100644 (file)
@@ -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();
     }