Skip to content

Commit a9a43c2

Browse files
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
(cherry picked from commit 7b79dc9) Co-authored-by: Anthony Wee <[email protected]>
1 parent 0048833 commit a9a43c2

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)