s3-vfs: Make sure that retval isn't used uninitialized.
authorAndreas Schneider <asn@samba.org>
Mon, 28 Jun 2010 09:13:24 +0000 (11:13 +0200)
committerAndreas Schneider <asn@samba.org>
Mon, 28 Jun 2010 10:56:13 +0000 (12:56 +0200)
Found by clang-analyzer.

source3/modules/vfs_scannedonly.c

index 12077f374da0dc49d83a7b27654c67dea73eb205..679ecc87dfe4a642e3b72e2fe7b0a158cf39d5c6 100644 (file)
@@ -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"