HomeClusterLabs Projects

Refactor: libcrmcommon: Avoid strlen() in pcmk__xml_needs_escape()

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Refactor: libcrmcommon: Avoid strlen() in pcmk__xml_needs_escape()

We don't need to maintain a pointer to the beginning of the string, so
just increment the text pointer.

Also make the increment logic a bit more readable, at the expense of
converting the for-loop to a while loop.

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

Details

Provenance
nrwahl2Authored on Mar 23 2024, 3:25 PM

Commit No Longer Exists

This commit no longer exists in the repository.