summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Wee <awee@box.com>2020-01-06 16:57:34 (GMT)
committerSteve Dower <steve.dower@python.org>2020-01-06 16:57:34 (GMT)
commit7b79dc9200a19ecbac667111dffd58e314be02a8 (patch)
tree940a246fc87bded273073867ed183bfb611ccd3e
parent5ec91f78d59d9c39b984f284e00cd04b96ddb5db (diff)
downloadcpython-7b79dc9200a19ecbac667111dffd58e314be02a8.zip
cpython-7b79dc9200a19ecbac667111dffd58e314be02a8.tar.gz
cpython-7b79dc9200a19ecbac667111dffd58e314be02a8.tar.bz2
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
-rw-r--r--Python/pathconfig.c2
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();
}