From cbb833d78e48953b3a04c0463f68c5370f2d4187 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 22 May 2013 07:37:33 +1000 Subject: smbd: Fix build on platforms that will not support var = {} initialisation Reviewed-by: Jelmer Vernooij --- source3/smbd/posix_acls.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index 01d429f235..3b9be9d872 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -4738,7 +4738,10 @@ int posix_sys_acl_blob_get_file(vfs_handle_struct *handle, { int ret; TALLOC_CTX *frame = talloc_stackframe(); - struct smb_acl_wrapper acl_wrapper = {}; + /* Initialise this to zero, in a portable way */ + struct smb_acl_wrapper acl_wrapper = { + NULL + }; struct smb_filename *smb_fname; smb_fname = synthetic_smb_fname_split(frame, path_p, NULL); -- cgit