summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/python-systemd/_reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python-systemd/_reader.c b/src/python-systemd/_reader.c
index 9d7ce2da27..d2f738b9c7 100644
--- a/src/python-systemd/_reader.c
+++ b/src/python-systemd/_reader.c
@@ -688,7 +688,7 @@ Journal_set_data_threshold(Journal *self, PyObject *value, void *closure)
if (r < 0) {
errno = -r;
PyErr_SetFromErrno(PyExc_OSError);
- return NULL;
+ return -1;
}
return 0;
}