From 2cdc5189a6bc3157fddd814662bde99ecfd77529 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Mon, 27 Mar 2023 03:05:06 +0300 Subject: =?UTF-8?q?gh-102941:=20Fix=20"=E2=80=98subobj=E2=80=99=20may=20be?= =?UTF-8?q?=20used=20uninitialized=20in=20this=20function"=20warning=20in?= =?UTF-8?q?=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 6b81663..ef9e65e 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)) -- cgit v0.12