diff options
author | Noel Power <noel.power@suse.com> | 2019-06-13 18:26:18 +0000 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2019-06-26 10:30:23 +0000 |
commit | 1d00bd9f0ba7849e98b6a437ef29aeea725b5444 (patch) | |
tree | 306e559024a063547948843ad995acc26a91d52a /lib/util | |
parent | cf43f1d052a44bea08bef09ea5eace77143c8093 (diff) | |
download | samba-1d00bd9f0ba7849e98b6a437ef29aeea725b5444.tar.gz |
lib/util: clang: Fix Value stored during its initialization is never read
Fixes:
lib/util/util_tdb.c:385:11: warning: Value stored to 'result' during its initialization is never read <--[clang]
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/util_tdb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util/util_tdb.c b/lib/util/util_tdb.c index 24fb6584899..7b57e83395d 100644 --- a/lib/util/util_tdb.c +++ b/lib/util/util_tdb.c @@ -382,7 +382,7 @@ int tdb_traverse_delete_fn(struct tdb_context *the_tdb, TDB_DATA key, TDB_DATA d NTSTATUS map_nt_error_from_tdb(enum TDB_ERROR err) { - NTSTATUS result = NT_STATUS_INTERNAL_ERROR; + NTSTATUS result; switch (err) { case TDB_SUCCESS: @@ -430,6 +430,9 @@ NTSTATUS map_nt_error_from_tdb(enum TDB_ERROR err) case TDB_ERR_NESTING: result = NT_STATUS_INTERNAL_ERROR; break; + default: + result = NT_STATUS_INTERNAL_ERROR; + break; }; return result; } |