mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
bpo-34170: _PyCoreConfig_Read() defaults to argc=0 (GH-8595)
Add unit tests for argc and argv of _PyCoreConfig.
This commit is contained in:
parent
9851227382
commit
ea68d83933
3 changed files with 16 additions and 1 deletions
|
|
@ -2294,6 +2294,9 @@ _PyCoreConfig_Read(_PyCoreConfig *config)
|
|||
if (config->_frozen < 0) {
|
||||
config->_frozen = 0;
|
||||
}
|
||||
if (config->argc < 0) {
|
||||
config->argc = 0;
|
||||
}
|
||||
|
||||
return _Py_INIT_OK();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue