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

asn_internal: Call va_end before returning #401

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

lnksz
Copy link

@lnksz lnksz commented Sep 4, 2020

I do not know the project's code-style, in some C projects this kind of error-handling would incorporate a goto.
But because of the general avoidance of goto I added va_end before each return.

I suppose has more insight into what this function does, one could "dry" the error handling.

I do not know the project's code-style, in some C projects this kind of error-handling would incorporate a goto.
@CLAassistant
Copy link

CLAassistant commented Sep 4, 2020

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 70.883% when pulling 834b75a on lnksz:patch-1 into 00fa516 on vlm:master.

mouse07410 added a commit to mouse07410/asn1c that referenced this pull request Dec 26, 2023
This is vlm#401 from vlm/asn1c by @Inksz.

From his PR:
I do not know the project's code-style, in some C projects this kind of error-handling would incorporate a goto.
But because of the general avoidance of goto I added va_end before each return.

I suppose has more insight into what this function does, one could "dry" the error handling.
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.

3 participants