mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Merge pull request #9992 from edolstra/fix-warning
Fix "may be used uninitialized" warning
This commit is contained in:
commit
c4ebb82da4
1 changed files with 1 additions and 1 deletions
|
@ -847,7 +847,7 @@ void Store::substitutePaths(const StorePathSet & paths)
|
||||||
if (!willSubstitute.empty())
|
if (!willSubstitute.empty())
|
||||||
try {
|
try {
|
||||||
std::vector<DerivedPath> subs;
|
std::vector<DerivedPath> subs;
|
||||||
for (auto & p : willSubstitute) subs.push_back(DerivedPath::Opaque{p});
|
for (auto & p : willSubstitute) subs.emplace_back(DerivedPath::Opaque{p});
|
||||||
buildPaths(subs);
|
buildPaths(subs);
|
||||||
} catch (Error & e) {
|
} catch (Error & e) {
|
||||||
logWarning(e.info());
|
logWarning(e.info());
|
||||||
|
|
Loading…
Reference in a new issue