bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (G… · python/cpython@7b79dc9

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 7b79dc9

anthonyweezooba

authored and

committed

bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)

1 parent 5ec91f7 commit 7b79dc9

File tree

1 file changed

+

1

-

1

lines changed

1 file changed

+

1

-

1

lines changed

Lines changed: 1 addition & 1 deletion

Original file line numberDiff line numberDiff line change

@@ -150,7 +150,7 @@ _PyWideStringList_Join(const PyWideStringList *list, wchar_t sep)

150150

static PyStatus

151151

_PyPathConfig_InitDLLPath(void)

152152

{

153-

if (_Py_dll_path == NULL) {

153+

if (_Py_dll_path != NULL) {

154154

/* Already set: nothing to do */

155155

return _PyStatus_OK();

156156

}

0 commit comments

Comments

 (0)