1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r10483: fixed some uninitialised variables warnings

(This used to be commit 315653cf1e)
This commit is contained in:
Andrew Tridgell 2005-09-24 23:52:30 +00:00 committed by Gerald (Jerry) Carter
parent b0de111292
commit 6e99b959de
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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) {