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

allownil: Allocate 0 length slices #336

Merged
merged 4 commits into from
Feb 10, 2024

Commits on Oct 27, 2023

  1. allownil: Allocate 0 length slices

    When `allownil` is enabled, always allocate zero length slices.
    
    This ensures roundtrips with 0-length slices are not returned as nil.
    
    Replaces tinylib#304
    
    Adds tests. Bonus: Don't shell out to test issue 94.
    klauspost committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    dac711c View commit details
    Browse the repository at this point in the history
  2. Remove obsolete script.

    klauspost committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    d0b68f5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9a9f402 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f56e549 View commit details
    Browse the repository at this point in the history