Use convenience function

This commit is contained in:
Neal Norwitz 2005-11-14 00:47:57 +00:00
parent e8c0536d57
commit daae6161b5
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ asdl_seq_new(int size)
seq = (asdl_seq *)PyObject_Malloc(n);
if (!seq) {
PyErr_SetString(PyExc_MemoryError, "no memory");
PyErr_NoMemory();
return NULL;
}
memset(seq, 0, n);