diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-05-02 05:16:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:51:42 -0500 |
commit | 585d87a9590ecf64681700d70c37e5276ee8514a (patch) | |
tree | 4a3b38320502dba4312848756522f4c162a42c5d /source4/lib/ldb/common/util.c | |
parent | 9c92ac995d07453b660cb9d912f9b80dcba7a986 (diff) | |
download | samba-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/common/util.c')
-rw-r--r-- | source4/lib/ldb/common/util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/util.c b/source4/lib/ldb/common/util.c index e1a7ada1c6..534d07c1df 100644 --- a/source4/lib/ldb/common/util.c +++ b/source4/lib/ldb/common/util.c @@ -73,14 +73,13 @@ int list_find(const void *needle, max_i = nmemb-1; while (min_i < max_i) { - size_t test_t; int r; test_i = (min_i + max_i) / 2; r = comp_fn(needle, *(void * const *)(base_p + (size * test_i))); if (r == 0) { /* scan back for first element */ - while (test_t > 0 && + while (test_i > 0 && comp_fn(needle, *(void * const *)(base_p + (size * (test_i-1)))) == 0) { test_i--; } |