summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wee <awee@box.com>2020-01-06 08:57:34 -0800
committerSteve Dower <steve.dower@python.org>2020-01-06 08:57:34 -0800
commit7b79dc9200a19ecbac667111dffd58e314be02a8 (patch)
tree940a246fc87bded273073867ed183bfb611ccd3e
parent5ec91f78d59d9c39b984f284e00cd04b96ddb5db (diff)
downloadcpython-git-7b79dc9200a19ecbac667111dffd58e314be02a8.tar.gz
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 363b7686bc..6abc648769 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();
}