diff options
author | Marco Paolini <markopaolini@gmail.com> | 2017-09-12 02:25:11 +0100 |
---|---|---|
committer | Marco Paolini <markopaolini@gmail.com> | 2017-09-12 02:25:11 +0100 |
commit | 6ab8f8e3f16fe04571bde88fd585260b7942b32c (patch) | |
tree | b5e310e7757d627e1f66e27277ddcd720bcd2872 /systemd/_daemon.c | |
parent | d93d41fd582705fb4889648f565f9222eeee1843 (diff) | |
download | python-systemd-6ab8f8e3f16fe04571bde88fd585260b7942b32c.tar.gz |
Fix malloc retval check
Diffstat (limited to 'systemd/_daemon.c')
-rw-r--r-- | systemd/_daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/_daemon.c b/systemd/_daemon.c index 7da1319..f41095a 100644 --- a/systemd/_daemon.c +++ b/systemd/_daemon.c @@ -123,7 +123,7 @@ static PyObject* notify(PyObject *self, PyObject *args, PyObject *keywds) { return NULL; arr = PyMem_NEW(int, len); - if (!fds) + if (!arr) return NULL; for (i = 0; i < len; i++) { |