File pacemaker-pengine-avoid-misuse-of-function-parameter.patch of Package pacemaker.19778
commit 3f5ebbbc2926221343a85c881ceaeab33cedfef6
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Thu Jan 25 17:16:10 2018 -0600
Low: pengine: avoid misuse of function parameter
Never NULL with current callers, but this makes static analysis happy
diff --git a/pengine/container.c b/pengine/container.c
index f5d916c80..a974d3646 100644
--- a/pengine/container.c
+++ b/pengine/container.c
@@ -391,7 +391,7 @@ find_compatible_tuple(resource_t *rsc_lh, resource_t * rsc, enum rsc_role_e filt
}
}
- pe_rsc_debug(rsc, "Can't pair %s with %s", rsc_lh->id, rsc->id);
+ pe_rsc_debug(rsc, "Can't pair %s with %s", rsc_lh->id, (rsc? rsc->id : "none"));
done:
g_list_free(scratch);
return pair;