diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-10-03 07:42:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 07:42:54 (GMT) |
commit | 0ee9619a4cba58730c45e65d22288fadbf7680de (patch) | |
tree | fa6e5a5a263935824930a46f1411a5da00857ce5 /Lib/test/clinic.test | |
parent | e738b5190bfa63086b5e8169189e9b05302873c8 (diff) | |
download | cpython-0ee9619a4cba58730c45e65d22288fadbf7680de.zip cpython-0ee9619a4cba58730c45e65d22288fadbf7680de.tar.gz cpython-0ee9619a4cba58730c45e65d22288fadbf7680de.tar.bz2 |
gh-97728: Argument Clinic: Fix uninitialized variable in the Py_UNICODE converter (GH-97729)
It affects function os.system() on Windows and Windows-specific modules
winreg, _winapi, _overlapped, and _msi.
Diffstat (limited to 'Lib/test/clinic.test')
-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 c73a75b..47e3e02 100644 --- a/Lib/test/clinic.test +++ b/Lib/test/clinic.test @@ -1803,12 +1803,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_t d_length; - const Py_UNICODE *e; + const Py_UNICODE *e = NULL; Py_ssize_t e_length; if (!_PyArg_ParseStack(args, nargs, "O&O&O&u#Z#:test_Py_UNICODE_converter", @@ -1833,7 +1833,7 @@ test_Py_UNICODE_converter_impl(PyObject *module, const Py_UNICODE *a, const Py_UNICODE *b, const Py_UNICODE *c, const Py_UNICODE *d, Py_ssize_t d_length, const Py_UNICODE *e, Py_ssize_t e_length) -/*[clinic end generated code: output=4d426808cdbb3ea3 input=064a3b68ad7f04b0]*/ +/*[clinic end generated code: output=9f34a249b3071fdd input=064a3b68ad7f04b0]*/ /*[clinic input] |