From bc680b6f4a0c160bc65b1c2955477e292f05d90b Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 28 Sep 2023 16:51:38 +1300 Subject: [PATCH] s4:torture: Fix building with FORTIFY_SOURCE=2 Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- source4/torture/rpc/clusapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/torture/rpc/clusapi.c b/source4/torture/rpc/clusapi.c index 99a272daf24..183ff5472d9 100644 --- a/source4/torture/rpc/clusapi.c +++ b/source4/torture/rpc/clusapi.c @@ -1232,7 +1232,7 @@ static bool test_ResourceTypeControl(struct torture_context *tctx, const char *resourcetype_name) { struct policy_handle Cluster; - bool ret; + bool ret = true; uint32_t control_codes[] = { CLUSCTL_RESOURCE_TYPE_GET_CLASS_INFO, CLUSCTL_RESOURCE_TYPE_GET_CHARACTERISTICS, @@ -2516,7 +2516,7 @@ static bool test_ClusterControl(struct torture_context *tctx, struct torture_clusapi_context *t = talloc_get_type_abort(data, struct torture_clusapi_context); struct policy_handle Cluster; - bool ret; + bool ret = true; uint32_t control_codes[] = { CLUSCTL_CLUSTER_GET_COMMON_PROPERTIES, CLUSCTL_CLUSTER_GET_RO_COMMON_PROPERTIES,