-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dnfjson: fix pointer aliasing issue #391
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Pinging @ezr-ondrej on this since he wrote the original code to ask if this might disrupt anything. Afaict, the default value for the option should be false
, so functionally this change should have no effect.
Also, for a bit more context for this, see: osbuild/osbuild-composer#3828 (comment) |
I don't understand why there are no pointers in this struct in contrast to other structs around the repo, but I did like to have a pointer in this case, because I like the extra option "flag not passed" which might be different then setting to false explicitly. For depsolving only, it is only filosophical problem tho, as false is a default and when it's one use and doesn't stick around anywhere, it's the same thing. If it would be passed to yum repo file on the image itself at some point I'd say it would make a slight difference tho. For the record, I've originally proposed this as a nonpointer, to keep the struct non-pointer, but we've come to the current design in this conversation: #284 (comment) I hope the context helps, I don't know enough to decide, I'll leave decisions to smarter people 😛 |
Thanks. That's basically the context I was looking for. |
e34b72d
to
cba9bf1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
No description provided.