svn commit: r229385 - head/usr.sbin/bsnmpd/tools/libbsnmptools

Ed Schouten ed at FreeBSD.org
Tue Jan 3 11:10:15 UTC 2012


Author: ed
Date: Tue Jan  3 11:10:15 2012
New Revision: 229385
URL: http://svn.freebsd.org/changeset/base/229385

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

Modified:
  head/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c

Modified: head/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
==============================================================================
--- head/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c	Tue Jan  3 11:08:58 2012	(r229384)
+++ head/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c	Tue Jan  3 11:10:15 2012	(r229385)
@@ -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-all mailing list