mirror of
https://github.com/NixOS/nix
synced 2025-06-30 11:43:15 +02:00
Merge pull request #10154 from intelfx/work/fix-null-deref
libfetchers/git: fix UB due to invalid usage of unique_ptr
This commit is contained in:
commit
584d64bebc
1 changed files with 1 additions and 1 deletions
|
@ -590,7 +590,7 @@ struct GitInputAccessor : InputAccessor
|
||||||
i = lookupCache.emplace(path, std::move(entry)).first;
|
i = lookupCache.emplace(path, std::move(entry)).first;
|
||||||
}
|
}
|
||||||
|
|
||||||
return &*i->second;
|
return i->second.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
git_tree_entry * need(const CanonPath & path)
|
git_tree_entry * need(const CanonPath & path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue