From: Victor Stinner Date: Mon, 23 Sep 2019 13:35:46 +0000 (+0200) Subject: bpo-38236: Fix init_dump_ascii_wstr() (GH-16333) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88e6447451fb5525e83e802c66c3e51b4a45bf86;p=python bpo-38236: Fix init_dump_ascii_wstr() (GH-16333) Add missing "return;" (to not dereference NULL pointer). --- 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("'");