diff options
author | Noel Power <noel.power@suse.com> | 2019-08-15 15:32:13 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-09-26 18:41:26 +0000 |
commit | 6831b6ba6f52dd865ecf09c575e4862f6dd3424b (patch) | |
tree | c2a75beac7c21e012818b21ca15d514637459c07 /source3/rpc_client | |
parent | 368d0cecc0bc859e321335f46b22d4334e092da1 (diff) | |
download | samba-6831b6ba6f52dd865ecf09c575e4862f6dd3424b.tar.gz |
s3/rpc_client: clang: Fix 'Value stored during initialization is never read'
Fixes:
source3/rpc_client/cli_pipe.c:397:11: warning: Value stored to 'ret' during its initialization is never read <--[clang]
NTSTATUS ret = NT_STATUS_OK;
^~~ ~~~~~~~~~~~~
source3/rpc_client/cli_pipe.c:1234:11: warning: Value stored to 'ret' during its initialization is never read <--[clang]
NTSTATUS ret = NT_STATUS_OK;
^~~ ~~~~~~~~~~~~
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 81b6bfb75bf..78197d99f9c 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -394,7 +394,7 @@ static NTSTATUS cli_pipe_validate_current_pdu(TALLOC_CTX *mem_ctx, { const struct dcerpc_response *r = NULL; DATA_BLOB tmp_stub = data_blob_null; - NTSTATUS ret = NT_STATUS_OK; + NTSTATUS ret; /* * Point the return values at the real data including the RPC @@ -1231,7 +1231,7 @@ static NTSTATUS create_rpc_bind_req(TALLOC_CTX *mem_ctx, { DATA_BLOB auth_token = data_blob_null; DATA_BLOB auth_info = data_blob_null; - NTSTATUS ret = NT_STATUS_OK; + NTSTATUS ret; switch (auth->auth_type) { case DCERPC_AUTH_TYPE_NONE: |