* 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 240ad4d..dd1c794 100644 (file)
@@ -91,7 +91,9 @@ bool pkgDepCache::Init(OpProgress *Prog)
    }
    
    Update(Prog);
-   Prog->Done();
+
+   if(Prog != 0)
+      Prog->Done();
    
    return true;
 }