HomeClusterLabs Projects

Low: libs: Fix cppcheck warnings.

Description

Low: libs: Fix cppcheck warnings.

A couple of these are just suppressions because cppcheck doesn't
understand some assertion or previous condition that prevents a pointer
from being NULL. A few of these are actual problems, however.

Note that there are still a lot of cppcheck warnings, but the remaining
ones all come from it thinking that g_string_sized_new could return
NULL. However, that function uses g_slice_new internally, and the
documentation for that function claims it can never return NULL.
cppcheck doesn't understand this, and there's not a good way to turn off
the warning for that short of adding a suppression message at every
caller.

Details

Provenance
clumensAuthored on Tue, Jun 17, 9:48 AM
Parents
rP4f621d11e0f8: Merge pull request #3886 from clumens/remote-fencing
Branches
Unknown
Tags
Unknown