mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
systemd-python: add missing check for return of PyDict_SetItem in _reader.c
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
533740e161
commit
684ecf306a
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user