From dba78049eaad7c1d3b28a029e152d7d182582c57 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 10 Oct 2013 18:23:42 +0200 Subject: ntdb: Make sure variables passed by value are initialized. This fixes a GCC warning. Signed-off-by: Andreas Schneider Reviewed-by: Alexander Bokovoy Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Fri Oct 11 18:05:19 CEST 2013 on sn-devel-104 --- lib/ntdb/check.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') 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) { -- cgit