mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
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
This commit is contained in:
@@ -644,7 +644,7 @@ static void *internal_ao2_callback(struct ao2_container *c,
|
|||||||
if ((flags & OBJ_POINTER)) /* we know hash can handle this case */
|
if ((flags & OBJ_POINTER)) /* we know hash can handle this case */
|
||||||
start = i = c->hash_fn(arg, flags & OBJ_POINTER) % c->n_buckets;
|
start = i = c->hash_fn(arg, flags & OBJ_POINTER) % c->n_buckets;
|
||||||
else /* don't know, let's scan all 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 */
|
/* determine the search boundaries: i..last-1 */
|
||||||
if (i < 0) {
|
if (i < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user