diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-09-23 13:35:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 13:35:46 (GMT) |
commit | 88e6447451fb5525e83e802c66c3e51b4a45bf86 (patch) | |
tree | 5a8a7cd4eac76900417e0cd3fd9d41fdbb388fc1 /Python/initconfig.c | |
parent | fcdb027234566c4d506d6d753c7d5638490fb088 (diff) | |
download | cpython-88e6447451fb5525e83e802c66c3e51b4a45bf86.zip cpython-88e6447451fb5525e83e802c66c3e51b4a45bf86.tar.gz cpython-88e6447451fb5525e83e802c66c3e51b4a45bf86.tar.bz2 |
bpo-38236: Fix init_dump_ascii_wstr() (GH-16333)
Add missing "return;" (to not dereference NULL pointer).
Diffstat (limited to 'Python/initconfig.c')
-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 cda4c86..9f04e3d 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("'"); |