chiark / gitweb /
systemd-python: correct data_threshold error return value
authorSteven Hiscocks <steven@hiscocks.me.uk>
Sat, 16 Feb 2013 18:23:24 +0000 (18:23 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Feb 2013 15:57:44 +0000 (16:57 +0100)
src/python-systemd/_reader.c

index 9d7ce2d..d2f738b 100644 (file)
@@ -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;
 }