1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

s4:torture: Fix building with FORTIFY_SOURCE=2

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-09-28 16:51:38 +13:00 committed by Joseph Sutton
parent c2f55b061f
commit bc680b6f4a

View File

@ -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,