chiark / gitweb /
systemd-python: add missing check for return of PyDict_SetItem in _reader.c
authorLukas Nykryn <lnykryn@redhat.com>
Fri, 1 Mar 2013 17:29:57 +0000 (18:29 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 1 Mar 2013 21:43:57 +0000 (16:43 -0500)
src/python-systemd/_reader.c

index 7f200d5..d3d45cc 100644 (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;
             }