summaryrefslogtreecommitdiffstats
path: root/src/python-systemd
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-10-14 13:54:56 +0200
committerDave Reisner <dreisner@archlinux.org>2014-10-14 14:35:16 +0200
commit9ff5ff320ec71fec7f2c841223380665794afd07 (patch)
tree786dc7695f866ae14132c071594d47c8bb549759 /src/python-systemd
parentresolved: apply label to /run/systemd/resolve/resolv.conf (diff)
downloadsystemd-9ff5ff320ec71fec7f2c841223380665794afd07.tar.xz
systemd-9ff5ff320ec71fec7f2c841223380665794afd07.zip
python-systemd: avoid hitting assert in __exit__
Reader_close() asserts that 'args' is always NULL, but the __exit__ function forwards a non-NULL args.
Diffstat (limited to 'src/python-systemd')
-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 d17aa83ec9..3a561269a7 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__,