summaryrefslogtreecommitdiff
path: root/source3/groupdb
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2019-08-15 15:29:03 +0100
committerJeremy Allison <jra@samba.org>2019-09-26 18:41:26 +0000
commit368d0cecc0bc859e321335f46b22d4334e092da1 (patch)
tree631cf9feb88d6388e3519295fbe4fa0b7d59d6bb /source3/groupdb
parent6055134330d9e4226deb298c506dc6f792bf5d33 (diff)
downloadsamba-368d0cecc0bc859e321335f46b22d4334e092da1.tar.gz
s3/groupdb: clang: 'Value stored during its initialization is never read'
Fixes: source3/groupdb/mapping_tdb.c:460:11: warning: Value stored to 'status' during its initialization is never read <--[clang] NTSTATUS status = NT_STATUS_OK; ^~~~~~ ~~~~~~~~~~~~ 1 warning generated. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/groupdb')
-rw-r--r--source3/groupdb/mapping_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c
index b7ff724ba05..7f6ae4e65e4 100644
--- a/source3/groupdb/mapping_tdb.c
+++ b/source3/groupdb/mapping_tdb.c
@@ -457,7 +457,7 @@ static NTSTATUS one_alias_membership(const struct dom_sid *member,
char *string_sid;
TDB_DATA dbuf;
const char *p;
- NTSTATUS status = NT_STATUS_OK;
+ NTSTATUS status;
TALLOC_CTX *frame = talloc_stackframe();
slprintf(key, sizeof(key), "%s%s", MEMBEROF_PREFIX,