]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 216222 via svnmerge from
authorMichiel van Baak <michiel@vanbaak.info>
Fri, 4 Sep 2009 06:13:19 +0000 (06:13 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Fri, 4 Sep 2009 06:13:19 +0000 (06:13 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r216222 | mvanbaak | 2009-09-04 08:08:33 +0200 (Fri, 04 Sep 2009) | 3 lines

  make sure 'start' is always initialized.
  Makes asterisk compile with --enable-dev-mode
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@216224 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/astobj2.c

index d6dc8b2d33451ef58b992f6c6ee8609cf22008cd..378a8311edbcec7dcbd6bff649fe589ca316eb78 100644 (file)
@@ -614,7 +614,7 @@ static 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) {