summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichiel van Baak <michiel@vanbaak.info>2009-09-04 06:08:33 +0000
committerMichiel van Baak <michiel@vanbaak.info>2009-09-04 06:08:33 +0000
commit6f32731568e608ef3de5ed4050bd3f1d16bced6a (patch)
tree07a129e4f4182b9df9cf1a8adae3d7960648a342
parentc2930434f6a068af9e6bf37b886d1905c37f8305 (diff)
make sure 'start' is always initialized.
Makes asterisk compile with --enable-dev-mode git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@216222 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--main/astobj2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/astobj2.c b/main/astobj2.c
index 9c99b29da..a86e5271f 100644
--- a/main/astobj2.c
+++ b/main/astobj2.c
@@ -644,7 +644,7 @@ static void *internal_ao2_callback(struct ao2_container *c,
if ((flags & OBJ_POINTER)) /* we know hash can handle this case */
start = i = c->hash_fn(arg, flags & OBJ_POINTER) % c->n_buckets;
else /* don't know, let's scan all buckets */
- i = -1; /* XXX this must be fixed later. */
+ start = i = -1; /* XXX this must be fixed later. */
/* determine the search boundaries: i..last-1 */
if (i < 0) {