Skip to content

Commit 7b79dc9

Browse files
anthonyweezooba
authored andcommitted
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
1 parent 5ec91f7 commit 7b79dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/pathconfig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ _PyWideStringList_Join(const PyWideStringList *list, wchar_t sep)
150150
static PyStatus
151151
_PyPathConfig_InitDLLPath(void)
152152
{
153-
if (_Py_dll_path == NULL) {
153+
if (_Py_dll_path != NULL) {
154154
/* Already set: nothing to do */
155155
return _PyStatus_OK();
156156
}

0 commit comments

Comments
 (0)