bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)

This commit is contained in:
Anthony Wee 2020-01-06 08:57:34 -08:00 committed by Steve Dower
parent 5ec91f78d5
commit 7b79dc9200
1 changed files with 1 additions and 1 deletions

View 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();
}