diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-01-31 12:27:35 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-01-31 17:48:36 +0100 |
commit | fb818b2ea194ec182aa3e776d38883dc615910a1 (patch) | |
tree | b82df56d7607dc3a610f4c1c1b6636060b079459 /src/python-systemd | |
parent | c07aeadfeabc2fa5bc58d7f41d79e2310d33d595 (diff) |
util: use alloca0() intead of alloca() + memzero()
Diffstat (limited to 'src/python-systemd')
-rw-r--r-- | src/python-systemd/_journal.c | 3 |
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)); |