From d11e184ed25e6a89ecfbe24673008d7adf5e770a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 28 Jun 2010 11:13:24 +0200 Subject: s3-vfs: Make sure that retval isn't used uninitialized. Found by clang-analyzer. --- source3/modules/vfs_scannedonly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/modules') 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" -- cgit