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
2f0ccab669
commit
f1de7c98ce
@ -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