Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jan 2012 11:10:15 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r229385 - head/usr.sbin/bsnmpd/tools/libbsnmptools
Message-ID:  <201201031110.q03BAF62020918@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201031110.q03BAF62020918>