summaryrefslogtreecommitdiff
path: root/src/python-systemd/_journal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/python-systemd/_journal.c')
-rw-r--r--src/python-systemd/_journal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/python-systemd/_journal.c b/src/python-systemd/_journal.c
index 669c22ce5e..8cc6d3e52a 100644
--- a/src/python-systemd/_journal.c
+++ b/src/python-systemd/_journal.c
@@ -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));