X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fpython-systemd%2F_reader.c;h=d2f738b9c7d0f0a14780050671248a3d5bf6c94e;hp=9d7ce2da2738a43086818f7cae0dfb6ec25eea5e;hb=a49f4d17bfc50c5864b992e2410a41f96286afc1;hpb=d2dd0265b5140ce849cfc3821ad595df2d4c9eb7 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; }