mirror of
https://github.com/systemd/systemd.git
synced 2024-12-13 04:03:35 +08:00
python-systemd: avoid hitting assert in __exit__
Reader_close() asserts that 'args' is always NULL, but the __exit__ function forwards a non-NULL args.
This commit is contained in:
parent
a5a807e63a
commit
9ff5ff320e
@ -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__,
|
||||
|
Loading…
Reference in New Issue
Block a user