bpo-38236: Fix init_dump_ascii_wstr() (GH-16333)
Add missing "return;" (to not dereference NULL pointer).
This commit is contained in:
@@ -2547,6 +2547,7 @@ init_dump_ascii_wstr(const wchar_t *str)
|
||||
{
|
||||
if (str == NULL) {
|
||||
PySys_WriteStderr("(not set)");
|
||||
return;
|
||||
}
|
||||
|
||||
PySys_WriteStderr("'");
|
||||
|
||||
Reference in New Issue
Block a user