summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--systemd/_daemon.c2
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++) {