mirror of
https://github.com/python/cpython.git
synced 2025-11-17 09:30:10 +00:00
Use convenience function
This commit is contained in:
parent
e8c0536d57
commit
daae6161b5
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ asdl_seq_new(int size)
|
||||||
|
|
||||||
seq = (asdl_seq *)PyObject_Malloc(n);
|
seq = (asdl_seq *)PyObject_Malloc(n);
|
||||||
if (!seq) {
|
if (!seq) {
|
||||||
PyErr_SetString(PyExc_MemoryError, "no memory");
|
PyErr_NoMemory();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
memset(seq, 0, n);
|
memset(seq, 0, n);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue