Skip to content

Commit

Permalink
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (G…
Browse files Browse the repository at this point in the history
…H-17818)

(cherry picked from commit 7b79dc9)

Co-authored-by: Anthony Wee <awee@box.com>
  • Loading branch information
miss-islington and anthonywee committed Jan 6, 2020
1 parent 0048833 commit a9a43c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/pathconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit a9a43c2

Please sign in to comment.