diff options
author | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-04 13:16:29 +0000 |
---|---|---|
committer | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-04 13:16:29 +0000 |
commit | 689be49934bf3a7e32eb8faa4c26c58485d112d8 (patch) | |
tree | e0b4b2c5feb4a331055dcf6657dd27947fe265b8 /main/astobj2.c | |
parent | dfa8fa6df499cf581ce96048185dd8d51f28fda5 (diff) |
Make sure 'start' is always initialized.
This is the same as rev 216222 in trunk but 1.4 is affected as well
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@216369 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/astobj2.c')
-rw-r--r-- | main/astobj2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/astobj2.c b/main/astobj2.c index 991fd80fe..89839aadc 100644 --- a/main/astobj2.c +++ b/main/astobj2.c @@ -485,7 +485,7 @@ void *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) { |