From a49f4d17bfc50c5864b992e2410a41f96286afc1 Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Sat, 16 Feb 2013 18:23:24 +0000 Subject: [PATCH] systemd-python: correct data_threshold error return value --- src/python-systemd/_reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python-systemd/_reader.c b/src/python-systemd/_reader.c index 9d7ce2da2..d2f738b9c 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; } -- 2.30.2