summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-06-28 11:13:24 +0200
committerAndreas Schneider <asn@samba.org>2010-06-28 12:56:13 +0200
commitd11e184ed25e6a89ecfbe24673008d7adf5e770a (patch)
tree4f6744c6b0ee389af3d3105939f4b82f707f70dd /source3/modules
parentac5600fc7e996bdde23666bc96a834044556c85f (diff)
downloadsamba-d11e184ed25e6a89ecfbe24673008d7adf5e770a.tar.gz
samba-d11e184ed25e6a89ecfbe24673008d7adf5e770a.tar.bz2
samba-d11e184ed25e6a89ecfbe24673008d7adf5e770a.zip
s3-vfs: Make sure that retval isn't used uninitialized.
Found by clang-analyzer.
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_scannedonly.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_scannedonly.c b/source3/modules/vfs_scannedonly.c
index 12077f374d..679ecc87df 100644
--- 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"