summaryrefslogtreecommitdiffstats
path: root/source3/smbd/posix_acls.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-05-22 07:37:33 +1000
committerAndrew Bartlett <abartlet@samba.org>2013-05-27 11:57:00 +1000
commitcbb833d78e48953b3a04c0463f68c5370f2d4187 (patch)
tree28545abf003c769c23839a62d57b0f41540f03f1 /source3/smbd/posix_acls.c
parentd41ec68601cfca67874f78d2f64784904d1530da (diff)
downloadsamba-cbb833d78e48953b3a04c0463f68c5370f2d4187.tar.gz
samba-cbb833d78e48953b3a04c0463f68c5370f2d4187.tar.xz
samba-cbb833d78e48953b3a04c0463f68c5370f2d4187.zip
smbd: Fix build on platforms that will not support var = {} initialisation
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source3/smbd/posix_acls.c')
-rw-r--r--source3/smbd/posix_acls.c5
1 files changed, 4 insertions, 1 deletions
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);