summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-10-19 12:34:19 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-10-19 12:34:19 +0000
commitd87116efb8c7382cc463f5208277470fce129d12 (patch)
treef50621d8ffeadd2c62fc95e282befe4fbeb1a3b5 /cmdline
parented478d8cabf4abd695f2cacc50442e8c0e3ac770 (diff)
* fix segfault when there is no Archive for a VerFile
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc2
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;