[Python-checkins] bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
Miss Islington (bot)
webhook-mailer at python.org
Mon Jan 6 12:17:44 EST 2020
https://github.com/python/cpython/commit/a9a43c221bf3896ed1d1c2eee2531b7121cf78e4
commit: a9a43c221bf3896ed1d1c2eee2531b7121cf78e4
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-01-06T09:17:36-08:00
summary:
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
(cherry picked from commit 7b79dc9200a19ecbac667111dffd58e314be02a8)
Co-authored-by: Anthony Wee <awee at box.com>
files:
M Python/pathconfig.c
diff --git a/Python/pathconfig.c b/Python/pathconfig.c
index 7f3fdcc103f7b..258ff613a066c 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