diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-09-24 23:52:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:53 -0500 |
commit | 6e99b959dedcd8da444fca04832011ffa744b619 (patch) | |
tree | d8ae04bc45c7a8c22d56a0fdb7282997315532a0 /source4/lib/tdb | |
parent | b0de111292c3c013fd557900bc517ad45c632ae7 (diff) | |
download | samba-6e99b959dedcd8da444fca04832011ffa744b619.tar.gz samba-6e99b959dedcd8da444fca04832011ffa744b619.tar.bz2 samba-6e99b959dedcd8da444fca04832011ffa744b619.zip |
r10483: fixed some uninitialised variables warnings
(This used to be commit 315653cf1ecc11c435ee35b20e6cf9c73a67fa68)
Diffstat (limited to 'source4/lib/tdb')
-rw-r--r-- | source4/lib/tdb/common/freelist.c | 2 | ||||
-rw-r--r-- | source4/lib/tdb/common/transaction.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/tdb/common/freelist.c b/source4/lib/tdb/common/freelist.c index 9707295ec3..3483751164 100644 --- a/source4/lib/tdb/common/freelist.c +++ b/source4/lib/tdb/common/freelist.c @@ -277,6 +277,8 @@ tdb_off_t tdb_allocate(struct tdb_context *tdb, tdb_len_t length, struct list_st goto fail; bestfit.rec_ptr = 0; + bestfit.last_ptr = 0; + bestfit.rec_len = 0; /* this is a best fit allocation strategy. Originally we used diff --git a/source4/lib/tdb/common/transaction.c b/source4/lib/tdb/common/transaction.c index fdcba110c2..cf0f378dce 100644 --- a/source4/lib/tdb/common/transaction.c +++ b/source4/lib/tdb/common/transaction.c @@ -734,7 +734,7 @@ static int transaction_setup_recovery(struct tdb_context *tdb, int tdb_transaction_commit(struct tdb_context *tdb) { const struct tdb_methods *methods; - tdb_off_t magic_offset; + tdb_off_t magic_offset = 0; u32 zero = 0; if (tdb->transaction == NULL) { |