]> git.saurik.com Git - apt.git/commitdiff
* fix a stupid bug in the depcache::Init() code
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 3 Jun 2005 21:02:32 +0000 (21:02 +0000)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 3 Jun 2005 21:02:32 +0000 (21:02 +0000)
apt-pkg/depcache.cc

index 240ad4da2d0e3b9c8f90f51253609d208aaf0aa9..dd1c794c9912726d9b38d5f6e7e1b644c94aeacb 100644 (file)
@@ -91,7 +91,9 @@ bool pkgDepCache::Init(OpProgress *Prog)
    }
    
    Update(Prog);
-   Prog->Done();
+
+   if(Prog != 0)
+      Prog->Done();
    
    return true;
 }