diff options
author | Andreas Schneider <asn@samba.org> | 2013-10-10 18:23:42 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-10-11 18:05:19 +0200 |
commit | dba78049eaad7c1d3b28a029e152d7d182582c57 (patch) | |
tree | 3e88f07dae2c33c60c8ff19bb727dce970c9133a /lib/ntdb | |
parent | 13b4dab31c3813d3e08578726e8fc1e9e51e6080 (diff) | |
download | samba-dba78049eaad7c1d3b28a029e152d7d182582c57.tar.gz samba-dba78049eaad7c1d3b28a029e152d7d182582c57.tar.bz2 samba-dba78049eaad7c1d3b28a029e152d7d182582c57.zip |
ntdb: Make sure variables passed by value are initialized.
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
Diffstat (limited to 'lib/ntdb')
-rw-r--r-- | lib/ntdb/check.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ntdb/check.c b/lib/ntdb/check.c index 2790c68eaf..5b6e905582 100644 --- a/lib/ntdb/check.c +++ b/lib/ntdb/check.c @@ -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) { |