Fixed a potential crash in the package manager on computing dependencies

This commit is contained in:
Matthias Koefferlein 2018-01-26 16:28:25 -08:00
parent 04b4c21e82
commit 705056675a
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ SaltDownloadManager::compute_list (const lay::Salt &salt, const lay::Salt &salt_
size_t n = m_registry.size ();
for (size_t i = 0; i < n; ++i) {
const Descriptor &p = m_registry [i];
Descriptor p = m_registry [i];
for (std::vector<SaltGrain::Dependency>::const_iterator d = p.grain.dependencies ().begin (); d != p.grain.dependencies ().end (); ++d) {