git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6100fa
)
s3-libsmb: Make sure that finfo is initialized.
author
Andreas Schneider
<asn@samba.org>
Mon, 28 Jun 2010 08:33:47 +0000
(10:33 +0200)
committer
Andreas Schneider
<asn@samba.org>
Mon, 28 Jun 2010 10:56:13 +0000
(12:56 +0200)
Found by clang-analyzer.
source3/libsmb/clilist.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clilist.c
b/source3/libsmb/clilist.c
index 83b9eb1301fd9483bf5e5937fae72c159fc2080e..93f67c7e63df89530eaaca5e36ee1f207dc2e7f1 100644
(file)
--- a/
source3/libsmb/clilist.c
+++ b/
source3/libsmb/clilist.c
@@
-260,6
+260,8
@@
int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
return -1;
}
+ ZERO_STRUCT(finfo);
+
while (ff_eos == 0) {
size_t nlen = 2*(strlen(mask)+1);