svn commit: r231281 - stable/9/usr.sbin/bsnmpd/tools/libbsnmptools

Ed Schouten ed at FreeBSD.org
Thu Feb 9 15:26:48 UTC 2012


Author: ed
Date: Thu Feb  9 15:26:47 2012
New Revision: 231281
URL: http://svn.freebsd.org/changeset/base/231281

Log:
  MFC r229385
  
    Fix subtle typo: compare against idx -- not index.
  
    In this context, index refers to the index(3) function. In this case it
    doesn't really harm, as this function is never called with idx == NULL.

Modified:
  stable/9/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
Directory Properties:
  stable/9/usr.sbin/bsnmpd/   (props changed)

Modified: stable/9/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
==============================================================================
--- stable/9/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c	Thu Feb  9 15:23:39 2012	(r231280)
+++ stable/9/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c	Thu Feb  9 15:26:47 2012	(r231281)
@@ -469,7 +469,7 @@ snmp_leaf_insert(struct snmp_toolinfo *s
 static int32_t
 snmp_index_insert(struct snmp_idxlist *headp, struct index *idx)
 {
-	if (headp == NULL || index == NULL)
+	if (headp == NULL || idx == NULL)
 		return (-1);
 
 	STAILQ_INSERT_TAIL(headp, idx, link);


More information about the svn-src-stable-9 mailing list