]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
authorAnthony Wee <awee@box.com>
Mon, 6 Jan 2020 16:57:34 +0000 (08:57 -0800)
committerSteve Dower <steve.dower@python.org>
Mon, 6 Jan 2020 16:57:34 +0000 (08:57 -0800)
Python/pathconfig.c

index 363b7686bc4515afdee5353e7c2985bf637a2ec4..6abc648769f712a8b945e23a40cc58759f418feb 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();
     }