HomeFreeBSD

loader: we can only env_discard() existing variable

Description

loader: we can only env_discard() existing variable

While dropping nvpair from nvstore, we also remove the corresponding
environment variable. By doing so, we should be careful not to try
to unset non-existing variable.

Reviewed by: imp
MFC after: 2 week
Differential revision: https://reviews.freebsd.org/D44083

Details

Provenance
tsoomeAuthored on Feb 25 2024, 10:34 PM
Reviewer
imp
Differential Revision
D44083: loader: we can only env_discard() existing variable
Parents
rG8db56defa766: MFV: xz 5.6.0.
Branches
Unknown
Tags
Unknown