mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
Fix a few "might be uninitialized" errors
I've seen them with clang Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Apr 23 19:02:10 UTC 2024 on atb-devel-224
This commit is contained in:
parent
316579b502
commit
1cba9de144
@ -470,7 +470,7 @@ SMBC_getatr(SMBCCTX * context,
|
||||
mode_t mode = S_IFREG;
|
||||
struct cli_credentials *creds = NULL;
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
NTSTATUS status;
|
||||
NTSTATUS status = NT_STATUS_ACCESS_DENIED;
|
||||
|
||||
if (!context || !context->internal->initialized) {
|
||||
TALLOC_FREE(frame);
|
||||
|
@ -1581,7 +1581,7 @@ NTSTATUS authsam_logon_success_accounting(struct ldb_context *sam_ctx,
|
||||
NTTIME sync_interval_nt = 0;
|
||||
bool am_rodc = false;
|
||||
bool txn_active = false;
|
||||
bool need_db_reread;
|
||||
bool need_db_reread = false;
|
||||
|
||||
mem_ctx = talloc_new(msg);
|
||||
if (mem_ctx == NULL) {
|
||||
|
@ -243,7 +243,7 @@ WERROR samdb_confirm_rodc_allowed_to_repl_to(struct ldb_context *sam_ctx,
|
||||
{
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
WERROR werr;
|
||||
uint32_t num_token_sids;
|
||||
uint32_t num_token_sids = 0;
|
||||
struct dom_sid *token_sids;
|
||||
const struct dom_sid *object_sid = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user