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
(from parent 1:
ac5600f
)
s3-vfs: Make sure that retval isn't used uninitialized.
author
Andreas Schneider
<asn@samba.org>
Mon, 28 Jun 2010 09:13:24 +0000
(11:13 +0200)
committer
Andreas Schneider
<asn@samba.org>
Mon, 28 Jun 2010 10:56:13 +0000
(12:56 +0200)
Found by clang-analyzer.
source3/modules/vfs_scannedonly.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_scannedonly.c
b/source3/modules/vfs_scannedonly.c
index 12077f374da0dc49d83a7b27654c67dea73eb205..679ecc87dfe4a642e3b72e2fe7b0a158cf39d5c6 100644
(file)
--- a/
source3/modules/vfs_scannedonly.c
+++ b/
source3/modules/vfs_scannedonly.c
@@
-377,7
+377,7
@@
static bool scannedonly_allow_access(vfs_handle_struct * handle,
struct smb_filename *cache_smb_fname;
TALLOC_CTX *ctx=talloc_tos();
char *cachefile;
- int retval;
+ int retval
= -1
;
int didloop;
DEBUG(SCANNEDONLY_DEBUG,
("smb_fname->base_name=%s, shortname=%s, base_name=%s\n"