From: Joseph Sutton Date: Thu, 28 Sep 2023 03:51:38 +0000 (+1300) Subject: s4:torture: Fix building with FORTIFY_SOURCE=2 X-Git-Tag: tevent-0.16.0~297 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc680b6f4a0c160bc65b1c2955477e292f05d90b;p=thirdparty%2Fsamba.git s4:torture: Fix building with FORTIFY_SOURCE=2 Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- 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,