git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6162100
)
s3/libsmb: clang: Fix 'Assigned value is garbage or undefined'
author
Noel Power
<noel.power@suse.com>
Tue, 13 Aug 2019 14:55:13 +0000
(15:55 +0100)
committer
Ralph Boehme
<slow@samba.org>
Tue, 22 Oct 2019 17:28:27 +0000
(17:28 +0000)
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>
source3/libsmb/clirap.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clirap.c
b/source3/libsmb/clirap.c
index 18348223b17ff7a6461fad79229a3827e7775994..9fcda53573cac57dd7adeb5c719a52359863c8ce 100644
(file)
--- 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) {