summaryrefslogtreecommitdiff
path: root/source3/libsmb/clirap.c
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2019-08-13 15:55:13 +0100
committerRalph Boehme <slow@samba.org>2019-10-22 17:28:27 +0000
commit4ef40d41f606f631411991101ed826733a74a8b7 (patch)
tree9a985159b5d062b929c93a23f0a63ae2a26c3c26 /source3/libsmb/clirap.c
parent61621009980a4c4a8b64bde8e03370152df0cdce (diff)
downloadsamba-4ef40d41f606f631411991101ed826733a74a8b7.tar.gz
s3/libsmb: clang: Fix 'Assigned value is garbage or undefined'
Fixes: source3/libsmb/clirap.c:1490:9: warning: Assigned value is garbage or undefined <--[clang] *mode = attr; ^ ~~~~ Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/libsmb/clirap.c')
-rw-r--r--source3/libsmb/clirap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c
index 18348223b17..9fcda53573c 100644
--- a/source3/libsmb/clirap.c
+++ b/source3/libsmb/clirap.c
@@ -1478,7 +1478,7 @@ NTSTATUS cli_qpathinfo3(struct cli_state *cli, const char *fname,
{
NTSTATUS status = NT_STATUS_OK;
SMB_STRUCT_STAT st = { 0 };
- uint32_t attr;
+ uint32_t attr = 0;
uint64_t pos;
if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {