smbd: Fix build on platforms that will not support var = {} initialisation
authorAndrew Bartlett <abartlet@samba.org>
Tue, 21 May 2013 21:37:33 +0000 (07:37 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 27 May 2013 01:57:00 +0000 (11:57 +1000)
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
source3/smbd/posix_acls.c

index 01d429f23590533d8366cb8422dde829ebe05acf..3b9be9d8720b1775e05f85a167ddfd10dc3ffc74 100644 (file)
@@ -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);