diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-09-23 15:35:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 15:35:46 +0200 |
commit | 88e6447451fb5525e83e802c66c3e51b4a45bf86 (patch) | |
tree | 5a8a7cd4eac76900417e0cd3fd9d41fdbb388fc1 /Python | |
parent | fcdb027234566c4d506d6d753c7d5638490fb088 (diff) | |
download | cpython-git-88e6447451fb5525e83e802c66c3e51b4a45bf86.tar.gz |
bpo-38236: Fix init_dump_ascii_wstr() (GH-16333)
Add missing "return;" (to not dereference NULL pointer).
Diffstat (limited to 'Python')
-rw-r--r-- | Python/initconfig.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/initconfig.c b/Python/initconfig.c index cda4c86373..9f04e3d183 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -2547,6 +2547,7 @@ init_dump_ascii_wstr(const wchar_t *str) { if (str == NULL) { PySys_WriteStderr("(not set)"); + return; } PySys_WriteStderr("'"); |