[asterisk-commits] mvanbaak: trunk r216222 - /trunk/main/astobj2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 4 01:08:37 CDT 2009


Author: mvanbaak
Date: Fri Sep  4 01:08:33 2009
New Revision: 216222

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=216222
Log:
make sure 'start' is always initialized.
Makes asterisk compile with --enable-dev-mode

Modified:
    trunk/main/astobj2.c

Modified: trunk/main/astobj2.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/astobj2.c?view=diff&rev=216222&r1=216221&r2=216222
==============================================================================
--- trunk/main/astobj2.c (original)
+++ trunk/main/astobj2.c Fri Sep  4 01:08:33 2009
@@ -644,7 +644,7 @@
 	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) {




More information about the asterisk-commits mailing list