X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fpython-systemd%2F_journal.c;h=8cc6d3e52a68dd095122c07f3850e002fd59f9f0;hp=669c22ce5e6bd71029a19ed376bcf3c14272f8fd;hb=fb818b2ea194ec182aa3e776d38883dc615910a1;hpb=c07aeadfeabc2fa5bc58d7f41d79e2310d33d595 diff --git a/src/python-systemd/_journal.c b/src/python-systemd/_journal.c index 669c22ce5..8cc6d3e52 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));