Skip to content
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

Fix load option regression #380

Closed

Conversation

julian-klode
Copy link
Collaborator

Alternative to #374 and #379 that just reverts the flawed commit and then initializes the start variable as it does in the previous code path in if

This reverts commit 9e8dde5. A
fix for the actual NULL pointer, to turn `cur = li->LoadOptions`
into `cur = start = li->LoadOptions` is in the next patch.

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1929471
This variable was not initialized, but the fix in
9e8dde5 was wrong, so after
reverting it, just initialize the variable like in the `if` path
above it.

An alternative is to check for `start == NULL` inside the if below
this, instead of, or in addition to `start == li->LoadOptions`.
@julian-klode
Copy link
Collaborator Author

Hmm, this actually did not fix fwupd either. So I guess, no fwupd fix for now, and I'll submit a broken shim for now and submit another one with #379 later. So frustrating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant