Skip to content

Bug fix for issue 369. - #370

Merged
henryiii merged 3 commits into
CLIUtils:masterfrom
phlptp:bugfix_369
Dec 17, 2019
Merged

henryiii merged 3 commits into
CLIUtils:masterfrom
phlptp:bugfix_369

Conversation

@phlptp

@phlptp phlptp commented Dec 16, 2019 •

Copy link
Copy Markdown
Collaborator

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

codecov Bot commented Dec 16, 2019 •

Copy link
Copy Markdown

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