summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteven Hiscocks <steven@hiscocks.me.uk>2013-02-16 18:23:24 +0000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-02-22 16:57:44 +0100
commita49f4d17bfc50c5864b992e2410a41f96286afc1 (patch)
tree8a142fe0c93b86639d85d72d3d8ff566d813138e /src
parentd2dd0265b5140ce849cfc3821ad595df2d4c9eb7 (diff)
systemd-python: correct data_threshold error return value
Diffstat (limited to 'src')
-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;
}