diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:30 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:30 +0000 |
commit | 8508b1df3743c016f3f3aa82d63672378a113cac (patch) | |
tree | ab87c7448f34456ad0e3499cdf8b99336ae3d4d1 /cmdline/apt-get.cc | |
parent | 8384ebdff13da4c2d8e6b4f71b6ef592219746df (diff) |
Fixed strange seg on sparc
Author: jgg
Date: 1999-08-04 05:37:18 GMT
Fixed strange seg on sparc
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r-- | cmdline/apt-get.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 1ee47e8c4..18888b4d9 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-get.cc,v 1.71 1999/07/12 04:39:37 jgg Exp $ +// $Id: apt-get.cc,v 1.72 1999/08/04 05:37:18 jgg Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -413,12 +413,8 @@ void Stats(ostream &out,pkgDepCache &Dep) pkgCache *CacheFile::SortCache = 0; int CacheFile::NameComp(const void *a,const void *b) { - if (a == 0 && b == 0) - return 0; - if (a == 0) - return -1; - if (b == 0) - return 1; + if (*(pkgCache::Package **)a == 0 || *(pkgCache::Package **)b == 0) + return *(pkgCache::Package **)a - *(pkgCache::Package **)b; const pkgCache::Package &A = **(pkgCache::Package **)a; const pkgCache::Package &B = **(pkgCache::Package **)b; |