From 2cdc5189a6bc3157fddd814662bde99ecfd77529 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Mon, 27 Mar 2023 03:05:06 +0300 Subject: [PATCH] =?UTF-8?q?gh-102941:=20Fix=20"=E2=80=98subobj=E2=80=99=20?= =?UTF-8?q?may=20be=20used=20uninitialized=20in=20this=20function"=20warni?= =?UTF-8?q?ng=20in=20`bytes=5Fmethods.c`=20(#102942)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Objects/bytes_methods.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/bytes_methods.c b/Objects/bytes_methods.c index 6b8166385d3..ef9e65e566e 100644 --- a/Objects/bytes_methods.c +++ b/Objects/bytes_methods.c @@ -774,7 +774,7 @@ _Py_bytes_tailmatch(const char *str, Py_ssize_t len, { Py_ssize_t start = 0; Py_ssize_t end = PY_SSIZE_T_MAX; - PyObject *subobj; + PyObject *subobj = NULL; int result; if (!stringlib_parse_args_finds(function_name, args, &subobj, &start, &end))