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

This commit is contained in:
Lukas Nykryn 2013-03-01 18:29:57 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 533740e161
commit 684ecf306a

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;
}