HomeClusterLabs Projects

Refactor: remoted: Use g_strchug() in load_env_vars()
074d34957ba8Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: remoted: Use g_strchug() in load_env_vars()

Skipping (or now, stripping) leading whitespace is one fewer thing we
have to do ourselves. g_strchug() is defined to operate on a (gchar *),
but it modifies its argument in place without
allocating/rellocating/freeing memory, so it's safe.

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

Details

Provenance
nrwahl2Authored on Mar 7 2025, 5:59 PM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.