summaryrefslogtreecommitdiff
path: root/src/python-systemd
diff options
context:
space:
mode:
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 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;
}