Skip to content

Commit

Permalink
dnfjson: fix pointer aliasing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
diaasami authored and achilleas-k committed Jan 25, 2024
1 parent dadbd58 commit 1c42864
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/dnfjson/dnfjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,12 @@ func (s *Solver) reposFromRPMMD(rpmRepos []rpmmd.RepoConfig) ([]repoConfig, erro
MirrorList: rr.MirrorList,
GPGKeys: rr.GPGKeys,
MetadataExpire: rr.MetadataExpire,
ModuleHotfixes: rr.ModuleHotfixes,
repoHash: rr.Hash(),
}
if rr.ModuleHotfixes != nil {
val := *rr.ModuleHotfixes
dr.ModuleHotfixes = &val
}

if rr.CheckGPG != nil {
dr.CheckGPG = *rr.CheckGPG
Expand Down

0 comments on commit 1c42864

Please sign in to comment.