Date: Thu, 9 Feb 2012 15:26:47 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r231281 - stable/9/usr.sbin/bsnmpd/tools/libbsnmptools Message-ID: <201202091526.q19FQl4V007208@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202091526.q19FQl4V007208>