diff options
author | Anthony Wee <awee@box.com> | 2020-01-06 16:57:34 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@python.org> | 2020-01-06 16:57:34 (GMT) |
commit | 7b79dc9200a19ecbac667111dffd58e314be02a8 (patch) | |
tree | 940a246fc87bded273073867ed183bfb611ccd3e /Python/pathconfig.c | |
parent | 5ec91f78d59d9c39b984f284e00cd04b96ddb5db (diff) | |
download | cpython-7b79dc9200a19ecbac667111dffd58e314be02a8.zip cpython-7b79dc9200a19ecbac667111dffd58e314be02a8.tar.gz cpython-7b79dc9200a19ecbac667111dffd58e314be02a8.tar.bz2 |
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
Diffstat (limited to 'Python/pathconfig.c')
-rw-r--r-- | Python/pathconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pathconfig.c b/Python/pathconfig.c index 363b768..6abc648 100644 --- a/Python/pathconfig.c +++ b/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(); } |