[svn-commits] mvanbaak: branch 1.4 r216369 - /branches/1.4/main/astobj2.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Sep 4 08:16:33 CDT 2009


Author: mvanbaak
Date: Fri Sep  4 08:16:29 2009
New Revision: 216369

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=216369
Log:
Make sure 'start' is always initialized.

This is the same as rev 216222 in trunk but 1.4 is affected as well

Modified:
    branches/1.4/main/astobj2.c

Modified: branches/1.4/main/astobj2.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/main/astobj2.c?view=diff&rev=216369&r1=216368&r2=216369
==============================================================================
--- branches/1.4/main/astobj2.c (original)
+++ branches/1.4/main/astobj2.c Fri Sep  4 08:16:29 2009
@@ -485,7 +485,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 svn-commits mailing list