diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-10-04 19:35:59 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-10-04 19:35:59 +0200 |
commit | 986d97bb0d62d7529a6a0328c39ddbd47be879a1 (patch) | |
tree | 6650e42b1db2416a19217e9df059d710f0a84bf9 /apt-pkg | |
parent | 1c7d52b7916b64ad52b915bfe69e8817e33ad1e7 (diff) |
* apt-pkg/deb/dpkgpm.cc:
- fix crash in WriteApportReport (LP: #144537)
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index e1e26e903..466d3628b 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -938,9 +938,9 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg) if (Pkg.end() == true) return; pkgCache::VerIterator Ver = Cache.GetCandidateVer(Pkg); - pkgver = Ver.VerStr(); if (Ver.end() == true) return; + pkgver = Ver.VerStr() == NULL ? "unknown" : Ver.VerStr(); pkgRecords Recs(Cache); pkgRecords::Parser &Parse = Recs.Lookup(Ver.FileList()); srcpkgname = Parse.SourcePkg(); |