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

Bug fix for issue 369. #370

Merged
merged 3 commits into from
Dec 17, 2019
Merged

Bug fix for issue 369. #370

merged 3 commits into from
Dec 17, 2019

Conversation

phlptp
Copy link
Collaborator

@phlptp phlptp commented Dec 16, 2019

The default_val call was not resetting the option state after it had executed the callback and reset the results vector, allowing the possibility of an empty results getting passed to some conversions functions.

If merged this pull request will add the test described in issue #369 and a fix to the default_val function which correctly resets the option state after evaluating the internal callback.

Closes #369.

…ion state after it had executed the callback and reset the results vector, allowing the possibility of an empty results getting passed to some conversions functions.
@codecov
Copy link

codecov bot commented Dec 16, 2019

Codecov Report

Merging #370 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #370   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          12     12           
  Lines        3397   3398    +1     
=====================================
+ Hits         3397   3398    +1
Impacted Files Coverage Δ
include/CLI/Option.hpp 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df7f4f6...b7ae841. Read the comment docs.

@phlptp phlptp added the bug label Dec 16, 2019
@henryiii henryiii merged commit b979d3a into CLIUtils:master Dec 17, 2019
@henryiii henryiii deleted the bugfix_369 branch December 17, 2019 14:17
@henryiii henryiii added this to the v1.9 milestone Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segmentation fault
2 participants