bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (G… · python/cpython@7b79dc9 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 7b79dc9

anthonyweezooba

authored and

committed

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 1 addition & 1 deletion

Original file line number Diff line number Diff line change
@@ -150,7 +150,7 @@ _PyWideStringList_Join(const PyWideStringList *list, wchar_t sep)
150 150 static PyStatus
151 151 _PyPathConfig_InitDLLPath(void)
152 152 {
153 -if (_Py_dll_path == NULL) {
153 +if (_Py_dll_path != NULL) {
154 154 /* Already set: nothing to do */
155 155 return _PyStatus_OK();
156 156 }