[Python-checkins] bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
Steve Dower
webhook-mailer at python.org
Mon Jan 6 11:57:38 EST 2020
https://github.com/python/cpython/commit/7b79dc9200a19ecbac667111dffd58e314be02a8
commit: 7b79dc9200a19ecbac667111dffd58e314be02a8
branch: master
author: Anthony Wee <awee at box.com>
committer: Steve Dower <steve.dower at python.org>
date: 2020-01-06T08:57:34-08:00
summary:
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
files:
M Python/pathconfig.c
diff --git a/Python/pathconfig.c b/Python/pathconfig.c
index 363b7686bc451..6abc648769f71 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();
}
More information about the Python-checkins
mailing list