diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-01-06 17:17:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-06 17:17:36 (GMT) |
commit | a9a43c221bf3896ed1d1c2eee2531b7121cf78e4 (patch) | |
tree | 11b5ee85a00a287bd63737f3e04bad71e079271f | |
parent | 0048833e1308d39dc9c6489da7872ade0f14486f (diff) | |
download | cpython-a9a43c221bf3896ed1d1c2eee2531b7121cf78e4.zip cpython-a9a43c221bf3896ed1d1c2eee2531b7121cf78e4.tar.gz cpython-a9a43c221bf3896ed1d1c2eee2531b7121cf78e4.tar.bz2 |
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
(cherry picked from commit 7b79dc9200a19ecbac667111dffd58e314be02a8)
Co-authored-by: Anthony Wee <awee@box.com>
-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 7f3fdcc..258ff61 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(); } |