diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2013-03-01 18:29:57 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-03-01 16:43:57 -0500 |
commit | 684ecf306a2a9749fd4be28170b7d83252e7c590 (patch) | |
tree | bdbfc968db3ac4e0fdb64ceff83e19f5158980be | |
parent | 533740e16118147ca1c066d641654d975ab6e169 (diff) |
systemd-python: add missing check for return of PyDict_SetItem in _reader.c
-rw-r--r-- | src/python-systemd/_reader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python-systemd/_reader.c b/src/python-systemd/_reader.c index 7f200d53f6..d3d45cc015 100644 --- a/src/python-systemd/_reader.c +++ b/src/python-systemd/_reader.c @@ -208,7 +208,7 @@ static PyObject* Reader_get_next(Reader *self, PyObject *args) if (r < 0) goto error; - PyDict_SetItem(dict, key, tmp_list); + r = PyDict_SetItem(dict, key, tmp_list); if (r < 0) goto error; } |