Browse Source

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

pull/17872/head
Anthony Wee 6 years ago
committed by Steve Dower
parent
commit
7b79dc9200
  1. 2
      Python/pathconfig.c

2
Python/pathconfig.c

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

Loading…
Cancel
Save