diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-03-27 00:05:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 00:05:06 (GMT) |
commit | 2cdc5189a6bc3157fddd814662bde99ecfd77529 (patch) | |
tree | 3c95fdb7fde1577cae608ae1b8ea0f1c28f1d3d1 /Objects | |
parent | 30a306c2ade6c2af3c0b1d988a17dae3916e0d27 (diff) | |
download | cpython-2cdc5189a6bc3157fddd814662bde99ecfd77529.zip cpython-2cdc5189a6bc3157fddd814662bde99ecfd77529.tar.gz cpython-2cdc5189a6bc3157fddd814662bde99ecfd77529.tar.bz2 |
gh-102941: Fix "‘subobj’ may be used uninitialized in this function" warning in `bytes_methods.c` (#102942)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/bytes_methods.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |