bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
(cherry picked from commit 7b79dc9200a19ecbac667111dffd58e314be02a8)
Co-authored-by: Anthony Wee <awee@box.com>
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 @@
static PyStatus
_PyPathConfig_InitDLLPath(void)
{
- if (_Py_dll_path == NULL) {
+ if (_Py_dll_path != NULL) {
/* Already set: nothing to do */
return _PyStatus_OK();
}