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

Fix panic in NewSystemd on nil values #219

Merged
merged 1 commit into from
Feb 17, 2022
Merged

Commits on Feb 17, 2022

  1. Fix panic in NewSystemd on nil values

    NewSystemd previously panicked if it was given a nil resource value for
    resources.Memory.Max or resources.CPU.Weight (if resources.CPU or
    resources.Memory is non-nil)
    
    This also checks the value of Max and Weight before dereferencing them.
    
    Signed-off-by: Cameron Sparr <sparrc@users.noreply.github.com>
    sparrc committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    65478b8 View commit details
    Browse the repository at this point in the history