Skip to content

Commit 7ea37c0

Browse files
falconindykeszybz
authored andcommitted
python-systemd: avoid hitting assert in __exit__
Reader_close() asserts that 'args' is always NULL, but the __exit__ function forwards a non-NULL args.
1 parent a68a57e commit 7ea37c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemd/_reader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ PyDoc_STRVAR(Reader___exit____doc__,
313313
"Part of the context manager protocol.\n"
314314
"Closes the journal.\n");
315315
static PyObject* Reader___exit__(Reader *self, PyObject *args) {
316-
return Reader_close(self, args);
316+
return Reader_close(self, NULL);
317317
}
318318

319319
PyDoc_STRVAR(Reader_next__doc__,

0 commit comments

Comments
 (0)