diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-10-19 12:34:19 +0000 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-10-19 12:34:19 +0000 |
commit | d87116efb8c7382cc463f5208277470fce129d12 (patch) | |
tree | f50621d8ffeadd2c62fc95e282befe4fbeb1a3b5 /cmdline | |
parent | ed478d8cabf4abd695f2cacc50442e8c0e3ac770 (diff) |
* fix segfault when there is no Archive for a VerFile
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-get.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 82f202103..3ffb740a6 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1227,7 +1227,7 @@ pkgSrcRecords::Parser *FindSrc(const char *Name,pkgRecords &Recs, continue; //std::cout << VF.File().Archive() << std::endl; - if(VF.File().Archive() == DefRel) + if(VF.File().Archive() && (VF.File().Archive() == DefRel)) { VerTag = Ver.VerStr(); break; |