diff --git a/source3/modules/vfs_hpuxacl.c b/source3/modules/vfs_hpuxacl.c index f929340..cb57482 100644 --- a/source3/modules/vfs_hpuxacl.c +++ b/source3/modules/vfs_hpuxacl.c @@ -255,7 +255,7 @@ int hpuxacl_sys_acl_set_file(vfs_handle_struct *handle, if (S_ISDIR(s.st_mode)) { HPUX_ACL_T other_acl; int other_count; - SMB_ACL_TYPE_T other_type; + SMB_ACL_TYPE_T other_type = NULL; other_type = (type == SMB_ACL_TYPE_ACCESS) ? SMB_ACL_TYPE_DEFAULT @@ -349,9 +349,9 @@ int hpuxacl_sys_acl_set_fd(vfs_handle_struct *handle, int hpuxacl_sys_acl_delete_def_file(vfs_handle_struct *handle, const char *path) { - SMB_ACL_T smb_acl; + SMB_ACL_T smb_acl = NULL; int ret = -1; - HPUX_ACL_T hpux_acl; + HPUX_ACL_T hpux_acl = NULL; int count; DEBUG(10, ("entering hpuxacl_sys_acl_delete_def_file.\n")); @@ -486,7 +486,7 @@ static bool smb_acl_to_hpux_acl(SMB_ACL_T smb_acl, static SMB_ACL_T hpux_acl_to_smb_acl(HPUX_ACL_T hpux_acl, int count, SMB_ACL_TYPE_T type) { - SMB_ACL_T result; + SMB_ACL_T result = NULL; int i; if ((result = sys_acl_init(0)) == NULL) {