mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
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.
This commit is contained in:
parent
e738b5190b
commit
0ee9619a4c
8 changed files with 46 additions and 42 deletions
|
@ -3586,6 +3586,7 @@ class Py_UNICODE_converter(CConverter):
|
|||
self.converter = '_PyUnicode_WideCharString_Opt_Converter'
|
||||
else:
|
||||
fail("Py_UNICODE_converter: illegal 'accept' argument " + repr(accept))
|
||||
self.c_default = "NULL"
|
||||
|
||||
def cleanup(self):
|
||||
if not self.length:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue