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:
parent
c70a327b9f
commit
b589816c74
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user