Fix warning

This commit is contained in:
John Ericson 2023-03-30 16:29:13 -04:00
parent aa99005004
commit a6d00a7bfb

View file

@ -450,7 +450,7 @@ StorePath BinaryCacheStore::addTextToStore(
RepairFlag repair) RepairFlag repair)
{ {
auto textHash = hashString(htSHA256, s); auto textHash = hashString(htSHA256, s);
auto path = makeTextPath(name, TextInfo { textHash, references }); auto path = makeTextPath(name, TextInfo { { textHash }, references });
if (!repair && isValidPath(path)) if (!repair && isValidPath(path))
return path; return path;