chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a5a807e
)
python-systemd: avoid hitting assert in __exit__
author
Dave Reisner
<dreisner@archlinux.org>
Tue, 14 Oct 2014 11:54:56 +0000
(07:54 -0400)
committer
Dave Reisner
<dreisner@archlinux.org>
Tue, 14 Oct 2014 12:35:16 +0000
(08:35 -0400)
Reader_close() asserts that 'args' is always NULL, but the __exit__
function forwards a non-NULL args.
src/python-systemd/_reader.c
patch
|
blob
|
history
diff --git
a/src/python-systemd/_reader.c
b/src/python-systemd/_reader.c
index d17aa83ec92e8d11ea508df6b2768d774fdffa2f..3a561269a781c30e36c25d49e03d10a46757d948 100644
(file)
--- 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__,