mirror of
https://github.com/python/cpython.git
synced 2025-10-13 10:23:28 +00:00
SystemExit_init(): avoid an useless test
Make silent a false positive of the Clang Static Analyzer.
This commit is contained in:
parent
13b21bd749
commit
92236e5651
1 changed files with 1 additions and 1 deletions
|
@ -499,7 +499,7 @@ SystemExit_init(PySystemExitObject *self, PyObject *args, PyObject *kwds)
|
||||||
Py_CLEAR(self->code);
|
Py_CLEAR(self->code);
|
||||||
if (size == 1)
|
if (size == 1)
|
||||||
self->code = PyTuple_GET_ITEM(args, 0);
|
self->code = PyTuple_GET_ITEM(args, 0);
|
||||||
else if (size > 1)
|
else /* size > 1 */
|
||||||
self->code = args;
|
self->code = args;
|
||||||
Py_INCREF(self->code);
|
Py_INCREF(self->code);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue