s3: Fix an uninitialized variable
authorVolker Lendecke <vl@samba.org>
Sun, 1 Aug 2010 18:15:57 +0000 (20:15 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 1 Aug 2010 16:16:19 +0000 (18:16 +0200)
source3/modules/vfs_acl_common.c

index 79eb533af744e928415f61c2ef6f56cdce340810..46ff2e6f0c14acaf85be4c86a6ce8cfb796faaff 100644 (file)
@@ -251,7 +251,7 @@ static NTSTATUS get_nt_acl_internal(vfs_handle_struct *handle,
 {
        DATA_BLOB blob;
        NTSTATUS status;
-       uint16_t hash_type;
+       uint16_t hash_type = XATTR_SD_HASH_TYPE_NONE;
        uint8_t hash[XATTR_SD_HASH_SIZE];
        uint8_t hash_tmp[XATTR_SD_HASH_SIZE];
        struct security_descriptor *psd = NULL;