diff options
author | ed <ed@FreeBSD.org> | 2012-01-03 11:10:15 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2012-01-03 11:10:15 +0000 |
commit | f1de7c98ce04c27f9b75635865b85a5062ae3353 (patch) | |
tree | a0afffad2f4cc4d174c3f27cb2be7c287ab5159d /usr.sbin/bsnmpd | |
parent | 2f0ccab6690ab730f79c8e9bdc4b2ae2d4e144a6 (diff) | |
download | FreeBSD-src-f1de7c98ce04c27f9b75635865b85a5062ae3353.zip FreeBSD-src-f1de7c98ce04c27f9b75635865b85a5062ae3353.tar.gz |
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
Diffstat (limited to 'usr.sbin/bsnmpd')
-rw-r--r-- | usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c index a6d14a2..4f71c58 100644 --- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c +++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c @@ -469,7 +469,7 @@ snmp_leaf_insert(struct snmp_toolinfo *snmptoolctx, struct snmp_oid2str *entry) 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); |