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)