From: Nikita Sobolev Date: Mon, 27 Mar 2023 00:05:06 +0000 (+0300) Subject: gh-102941: Fix "‘subobj’ may be used uninitialized in this function" warning in ... X-Git-Tag: v3.12.0a7~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2cdc5189a6bc3157fddd814662bde99ecfd77529;p=thirdparty%2FPython%2Fcpython.git gh-102941: Fix "‘subobj’ may be used uninitialized in this function" warning in `bytes_methods.c` (#102942) --- diff --git a/Objects/bytes_methods.c b/Objects/bytes_methods.c index 6b8166385d37..ef9e65e566ec 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))