util: use alloca0() intead of alloca() + memzero()

This commit is contained in:
Lennart Poettering
2014-01-31 12:27:35 +01:00
parent c07aeadfea
commit fb818b2ea1
2 changed files with 2 additions and 4 deletions

View File

@@ -41,8 +41,7 @@ static PyObject *journal_sendv(PyObject *self, PyObject *args) {
/* Allocate an array for the argument strings */
argc = PyTuple_Size(args);
encoded = alloca(argc * sizeof(PyObject*));
memzero(encoded, argc * sizeof(PyObject*));
encoded = alloca0(argc * sizeof(PyObject*));
/* Allocate sufficient iovector space for the arguments. */
iov = alloca(argc * sizeof(struct iovec));