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

loader: Do not repeat strlen(options) condition #620

Merged
merged 1 commit into from
Dec 28, 2021
Merged

loader: Do not repeat strlen(options) condition #620

merged 1 commit into from
Dec 28, 2021

Conversation

chfast
Copy link
Member

@chfast chfast commented Dec 27, 2021

This at least confuses static analyzers.

@chfast chfast requested review from axic, gumb0 and yperbasis December 27, 2021 13:34
@codecov
Copy link

codecov bot commented Dec 27, 2021

Codecov Report

Merging #620 (6be763e) into master (04ce443) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #620   +/-   ##
=======================================
  Coverage   92.85%   92.85%           
=======================================
  Files          24       24           
  Lines        3511     3511           
  Branches      358      358           
=======================================
  Hits         3260     3260           
  Misses        144      144           
  Partials      107      107           

{
ec = set_error(EVMC_LOADER_INVALID_OPTION_NAME, "%s (%s) does not support any options",
vm->name, path);
goto exit;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be break; now, but maybe keeping goto is fine for consistency.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use goto exit because the later switch is also using it in case of error.

@chfast chfast merged commit 2b82bad into master Dec 28, 2021
@chfast chfast deleted the loader branch December 28, 2021 10:01
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.

2 participants