Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/libsaslc/dist/src fix the loop sentinel.



details:   https://anonhg.NetBSD.org/src/rev/ac9b6417dc8c
branches:  trunk
changeset: 762049:ac9b6417dc8c
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 14 12:45:31 2011 +0000

description:
fix the loop sentinel.

diffstat:

 crypto/external/bsd/libsaslc/dist/src/mech.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 104b9d0964b5 -r ac9b6417dc8c crypto/external/bsd/libsaslc/dist/src/mech.c
--- a/crypto/external/bsd/libsaslc/dist/src/mech.c      Mon Feb 14 12:36:38 2011 +0000
+++ b/crypto/external/bsd/libsaslc/dist/src/mech.c      Mon Feb 14 12:45:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mech.c,v 1.5 2011/02/13 05:39:52 christos Exp $ */
+/* $NetBSD: mech.c,v 1.6 2011/02/14 12:45:31 christos Exp $ */
 
 /* Copyright (c) 2010 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -35,7 +35,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: mech.c,v 1.5 2011/02/13 05:39:52 christos Exp $");
+__RCSID("$NetBSD: mech.c,v 1.6 2011/02/14 12:45:31 christos Exp $");
 
 #include <sys/queue.h>
 
@@ -106,7 +106,7 @@
                saslc__error_set_errno(ERR(ctx), ERROR_NOMEM);
                return NULL;
        }
-       for (i = 0; __arraycount(saslc__mechanisms); i++) {
+       for (i = 0; i < __arraycount(saslc__mechanisms); i++) {
                if (saslc__mechanisms[i] == NULL)
                        continue;
                if ((node = calloc(1, sizeof(*node))) == NULL)



Home | Main Index | Thread Index | Old Index