Browse Source

* fix a stupid bug in the depcache::Init() code

Michael Vogt 21 years ago
parent
commit
bebfc824a8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      apt-pkg/depcache.cc

+ 3 - 1
apt-pkg/depcache.cc

@@ -91,7 +91,9 @@ bool pkgDepCache::Init(OpProgress *Prog)
    }
    
    Update(Prog);
-   Prog->Done();
+
+   if(Prog != 0)
+      Prog->Done();
    
    return true;
 }