diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-07-30 10:25:23 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-07-30 10:25:23 +0200 |
| commit | c085ac239354d78c3093049a4c48a27f514c6da2 (patch) | |
| tree | 49bd68d0a6e749c36cc04ca950bd4fd117b57026 /python | |
| parent | 4922f32e6ee40511775067241bda6d2dde539c1f (diff) | |
| download | python-apt-c085ac239354d78c3093049a4c48a27f514c6da2.tar.gz | |
* python/cache.cc:
- fix crash if Ver.PriorityType() returns NULL
Diffstat (limited to 'python')
| -rw-r--r-- | python/cache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/cache.cc b/python/cache.cc index 66a2c5d9..bd280dec 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -599,7 +599,7 @@ static PyObject *VersionAttr(PyObject *Self,char *Name) else if (strcmp("Priority",Name) == 0) return Py_BuildValue("i",Ver->Priority); else if (strcmp("PriorityStr",Name) == 0) - return PyString_FromString(Ver.PriorityType()); + return Safe_FromString(Ver.PriorityType()); else if (strcmp("Downloadable", Name) == 0) return Py_BuildValue("b", Ver.Downloadable()); else if (strcmp("TranslatedDescription", Name) == 0) { |
