From c91bc2fdb6b75b27342554adaa80c6110b6cc237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Wirtel?= Date: Fri, 15 Mar 2019 21:27:12 +0100 Subject: [PATCH] bpo-36308: Fix _PyPathConfig_ComputeArgv0 warning 'argv0' may be used uninitialized in this function --- Python/pathconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/pathconfig.c b/Python/pathconfig.c index fb2d19e2797a7d..f0a8f640f18d94 100644 --- a/Python/pathconfig.c +++ b/Python/pathconfig.c @@ -567,7 +567,7 @@ _PyPathConfig_ComputeArgv0(const _PyWstrList *argv) { assert(_PyWstrList_CheckConsistency(argv)); - wchar_t *argv0; + wchar_t *argv0 = NULL; wchar_t *p = NULL; Py_ssize_t n = 0; int have_script_arg = 0;