Always properly initialize pool storage (bnc#846565)
authorMichael Andres <ma@suse.de>
Fri, 25 Oct 2013 09:29:35 +0000 (11:29 +0200)
committerMichael Andres <ma@suse.de>
Fri, 25 Oct 2013 09:31:55 +0000 (11:31 +0200)
zypp/pool/PoolImpl.h

index e3d1365..6182024 100644 (file)
@@ -373,10 +373,7 @@ namespace zypp
             bool addedItems = false;
             std::list<PoolItem> addedProducts;
 
-            if ( pool.capacity() != _store.capacity() )
-            {
-              _store.resize( pool.capacity() );
-            }
+           _store.resize( pool.capacity() );
 
             if ( pool.capacity() )
             {