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

Return early in yaml_emitter_close #292

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 20, 2024

  1. Return early in yaml_emitter_close

    If yaml_emitter_dump failed, the emitter might be in a broken
    state and have leftover states/events.
    yaml_emitter_close calls yaml_emitter_emit which will
    try to emit those events, so we should return early.
    
    The recommended thing to do for library users is to abort
    when yaml_emitter_dump fails, but it's easy to add a check
    here as well.
    perlpunk committed May 20, 2024
    Configuration menu
    Copy the full SHA
    3a0d3a2 View commit details
    Browse the repository at this point in the history