diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-10-03 13:59:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 13:59:21 (GMT) |
commit | 769b9dccd2f796ffd0a75c1d088f2023c3ca28f7 (patch) | |
tree | c31af472a41a3add203d44d322af436770c902aa /Lib | |
parent | e1cbb6f62fba1f87222a35f451b9765c77ba508e (diff) | |
download | cpython-769b9dccd2f796ffd0a75c1d088f2023c3ca28f7.zip cpython-769b9dccd2f796ffd0a75c1d088f2023c3ca28f7.tar.gz cpython-769b9dccd2f796ffd0a75c1d088f2023c3ca28f7.tar.bz2 |
[3.10] gh-97728: Argument Clinic: Fix uninitialized variable in the Py_UNICODE converter (GH-97729) (GH-97760)
It affects function os.system() on Windows and Windows-specific modules
winreg, _winapi, _overlapped, and _msi.
(cherry picked from commit 0ee9619a4cba58730c45e65d22288fadbf7680de)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/clinic.test | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/clinic.test b/Lib/test/clinic.test index 0f5c651..3a3fbd1 100644 --- a/Lib/test/clinic.test +++ b/Lib/test/clinic.test @@ -1805,12 +1805,12 @@ static PyObject * test_Py_UNICODE_converter(PyObject *module, PyObject *const *args, Py_ssize_t nargs) { PyObject *return_value = NULL; - const Py_UNICODE *a; - const Py_UNICODE *b; - const Py_UNICODE *c; - const Py_UNICODE *d; + const Py_UNICODE *a = NULL; + const Py_UNICODE *b = NULL; + const Py_UNICODE *c = NULL; + const Py_UNICODE *d = NULL; Py_ssize_clean_t d_length; - const Py_UNICODE *e; + const Py_UNICODE *e = NULL; Py_ssize_clean_t e_length; if (!_PyArg_ParseStack(args, nargs, "O&O&O&u#Z#:test_Py_UNICODE_converter", @@ -1843,7 +1843,7 @@ test_Py_UNICODE_converter_impl(PyObject *module, const Py_UNICODE *a, Py_ssize_clean_t d_length, const Py_UNICODE *e, Py_ssize_clean_t e_length) -/*[clinic end generated code: output=ef45e982fedf0b3d input=064a3b68ad7f04b0]*/ +/*[clinic end generated code: output=e45007c49e77ad4a input=064a3b68ad7f04b0]*/ /*[clinic input] |