r14972: fix an uninitialised warning from ibm checker
authorAndrew Tridgell <tridge@samba.org>
Sat, 8 Apr 2006 02:29:48 +0000 (02:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:00:48 +0000 (14:00 -0500)
(This used to be commit 9b867d2acffdfdcd5dc1dd5341db19daf11b5e96)

source4/lib/tdb/common/io.c

index 0a910270c940f4d3ae45827288fd0f87eac7b838..f4f866a4c4e839ddb2f5fc2e0b0a1a629be4d1e6 100644 (file)
@@ -173,7 +173,7 @@ static void tdb_next_hash_chain(struct tdb_context *tdb, u32 *chain)
                        }
                }
        } else {
-               u32 off;
+               u32 off=0;
                for (;h < tdb->header.hash_size;h++) {
                        if (tdb_ofs_read(tdb, TDB_HASH_TOP(h), &off) != 0 || off != 0) {
                                break;