diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-10-12 11:06:34 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-10-12 11:06:34 +0200 |
| commit | cd32418cab838095163688ec25095032daec07e5 (patch) | |
| tree | 1f6f8c74851cf9f0379d252deb55f1d3c6e7ba4c /python/progress.cc | |
| parent | 78e9e09c400d9ea185da11328a00ef9251c0b342 (diff) | |
| parent | 02820025e1d48f7bde9551aeda6f12784ab0c954 (diff) | |
| download | python-apt-cd32418cab838095163688ec25095032daec07e5.tar.gz | |
merged from the 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); |
