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

only report arg to callback when relevant #118

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

carenas
Copy link
Contributor

@carenas carenas commented May 18, 2024

When calling the callback, the value passed in arg is only valid if the option->argInfo being evaluated is not POPT_ARG_NONE.

Fixes: #76

When calling the callback, the value passed in arg is only valid
if the option->argInfo being evaluated is not POPT_ARG_NONE.

Fixes: rpm-software-management#76
@pmatilai pmatilai self-assigned this Jun 12, 2024
@pmatilai
Copy link
Member

Apologies for the slow response, I've been intending to look at this closer and add the test from the ticket but too much other stuff going on. Manually tested with the ticket reproducer, thanks for the patch!

@pmatilai pmatilai merged commit 840cc9d into rpm-software-management:master Aug 21, 2024
1 check passed
@carenas carenas deleted the bogusarg branch August 21, 2024 17:34
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.

Non-argument-option have argument in callback.
2 participants