1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04: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:
Théophane Hufschmitt 2024-03-05 09:10:28 +01:00 committed by GitHub
commit 584d64bebc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -590,7 +590,7 @@ struct GitInputAccessor : InputAccessor
i = lookupCache.emplace(path, std::move(entry)).first;
}
return &*i->second;
return i->second.get();
}
git_tree_entry * need(const CanonPath & path)