[systemd-commits] src/python-systemd
Dave Reisner
dreisner at kemper.freedesktop.org
Tue Oct 14 05:37:22 PDT 2014
src/python-systemd/_reader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9ff5ff320ec71fec7f2c841223380665794afd07
Author: Dave Reisner <dreisner at archlinux.org>
Date: Tue Oct 14 07:54:56 2014 -0400
python-systemd: avoid hitting assert in __exit__
Reader_close() asserts that 'args' is always NULL, but the __exit__
function forwards a non-NULL args.
diff --git a/src/python-systemd/_reader.c b/src/python-systemd/_reader.c
index d17aa83..3a56126 100644
--- a/src/python-systemd/_reader.c
+++ b/src/python-systemd/_reader.c
@@ -313,7 +313,7 @@ PyDoc_STRVAR(Reader___exit____doc__,
"Part of the context manager protocol.\n"
"Closes the journal.\n");
static PyObject* Reader___exit__(Reader *self, PyObject *args) {
- return Reader_close(self, args);
+ return Reader_close(self, NULL);
}
PyDoc_STRVAR(Reader_next__doc__,
More information about the systemd-commits
mailing list