Skip to content

Commit 88e6447

Browse files
authored
bpo-38236: Fix init_dump_ascii_wstr() (GH-16333)
Add missing "return;" (to not dereference NULL pointer).
1 parent fcdb027 commit 88e6447

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/initconfig.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,6 +2547,7 @@ init_dump_ascii_wstr(const wchar_t *str)
25472547
{
25482548
if (str == NULL) {
25492549
PySys_WriteStderr("(not set)");
2550+
return;
25502551
}
25512552

25522553
PySys_WriteStderr("'");

0 commit comments

Comments
 (0)