systemd-python: add missing check for return of PyDict_SetItem in _reader.c

This commit is contained in:
Lukas Nykryn
2013-03-01 16:43:57 -05:00
committed by Zbigniew Jędrzejewski-Szmek
parent 533740e161
commit 684ecf306a
+1 -1
View File
@@ -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;
}