bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (G… · python/cpython@a9a43c2 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit a9a43c2
and
authored
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
(cherry picked from commit 7b79dc9) Co-authored-by: Anthony Wee awee@box.com
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -150,7 +150,7 @@ _PyWideStringList_Join(const PyWideStringList *list, wchar_t sep) | ||
150 | 150 | static PyStatus |
151 | 151 | _PyPathConfig_InitDLLPath(void) |
152 | 152 | { |
153 | -if (_Py_dll_path == NULL) { | |
153 | +if (_Py_dll_path != NULL) { | |
154 | 154 | /* Already set: nothing to do */ |
155 | 155 | return _PyStatus_OK(); |
156 | 156 | } |