summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb/ldb_index.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-05-02 05:16:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:42 -0500
commit585d87a9590ecf64681700d70c37e5276ee8514a (patch)
tree4a3b38320502dba4312848756522f4c162a42c5d /source4/lib/ldb/ldb_tdb/ldb_index.c
parent9c92ac995d07453b660cb9d912f9b80dcba7a986 (diff)
downloadsamba-585d87a9590ecf64681700d70c37e5276ee8514a.tar.gz
samba-585d87a9590ecf64681700d70c37e5276ee8514a.tar.bz2
samba-585d87a9590ecf64681700d70c37e5276ee8514a.zip
r442: fixed some uninitialised variables pointed out by gcc -O3
(This used to be commit ff31cfb941b77e99e648011a6b7639b2a5923a6a)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb/ldb_index.c')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_index.c b/source4/lib/ldb/ldb_tdb/ldb_index.c
index 76e17cdfd5..987ee017b6 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_index.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_index.c
@@ -452,7 +452,7 @@ static int ltdb_index_dn(struct ldb_context *ldb,
const struct ldb_message *index_list,
struct dn_list *list)
{
- int ret;
+ int ret = -1;
switch (tree->operation) {
case LDB_OP_SIMPLE: