From owner-svn-src-all@FreeBSD.ORG Thu Feb 9 15:26:48 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45BBF106566B; Thu, 9 Feb 2012 15:26:48 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2F6A48FC0C; Thu, 9 Feb 2012 15:26:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q19FQmLN007210; Thu, 9 Feb 2012 15:26:48 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q19FQl4V007208; Thu, 9 Feb 2012 15:26:47 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201202091526.q19FQl4V007208@svn.freebsd.org> From: Ed Schouten Date: Thu, 9 Feb 2012 15:26:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r231281 - stable/9/usr.sbin/bsnmpd/tools/libbsnmptools X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2012 15:26:48 -0000 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);