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
This commit is contained in:
Ed Schouten 2012-01-03 11:10:15 +00:00
parent c70a327b9f
commit b589816c74

View File

@ -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);