ntdb: Make sure variables passed by value are initialized.
authorAndreas Schneider <asn@samba.org>
Thu, 10 Oct 2013 16:23:42 +0000 (18:23 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 11 Oct 2013 16:05:19 +0000 (18:05 +0200)
This fixes a GCC warning.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Oct 11 18:05:19 CEST 2013 on sn-devel-104

lib/ntdb/check.c

index 2790c68eafdca98a474b3c7a2f14ec5341caaf63..5b6e90558255c11e78bad08b67288e78d9606abb 100644 (file)
@@ -659,10 +659,11 @@ _PUBLIC_ enum NTDB_ERROR ntdb_check_(struct ntdb_context *ntdb,
                          enum NTDB_ERROR (*check)(NTDB_DATA, NTDB_DATA, void *),
                          void *data)
 {
-       ntdb_off_t *fr = NULL, *used = NULL, ft, recovery;
+       ntdb_off_t *fr = NULL, *used = NULL;
+       ntdb_off_t ft = 0, recovery = 0;
        size_t num_free = 0, num_used = 0, num_found = 0, num_ftables = 0,
                num_capabilities = 0;
-       uint64_t features;
+       uint64_t features = 0;
        enum NTDB_ERROR ecode;
 
        if (ntdb->flags & NTDB_CANT_CHECK) {