diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-10-17 10:08:36 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-10-17 10:08:36 +0200 |
| commit | 718409afe561f7dfc7407214685ccbfacdf31631 (patch) | |
| tree | 837b8b6e1539c1bb976137012ca2c12350dc5150 /python/progress.cc | |
| parent | 5384546c17c80b809791ef95ac357bc017be83f9 (diff) | |
| parent | 7bd938dd78ab27ec23ffd84811dbdfa5dd83593a (diff) | |
| download | python-apt-718409afe561f7dfc7407214685ccbfacdf31631.tar.gz | |
merged debian-sid branch
Diffstat (limited to 'python/progress.cc')
| -rw-r--r-- | python/progress.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/progress.cc b/python/progress.cc index a7fd7ae1..9e870875 100644 --- a/python/progress.cc +++ b/python/progress.cc @@ -28,6 +28,8 @@ inline bool setattr(PyObject *object, const char *attr, const char *fmt, T arg) if (!object) return false; PyObject *value = Py_BuildValue(fmt, arg); + if (value == NULL) + return false; int result = PyObject_SetAttrString(object, attr, value); Py_DECREF(value); |
