HomeClusterLabs Projects

Refactor: tools: Strip rest of trailing whitespace in load_env_vars()
5bc947c5d844Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Refactor: tools: Strip rest of trailing whitespace in load_env_vars()

By stripping the rest of the trailing whitespace after stripping the
comment, we eliminate the need to null-terminate explictly. If the value
is valid (not followed by any garbage), then end already points to a
terminating null byte after stripping the comment and remaining
whitespace.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 7 2025, 6:33 PM
Parents
rPacb7480307e2: Refactor: remoted: Strip trailing comment in load_env_vars()
Branches
Unknown
Tags
Unknown

Event Timeline