snmp plugin: fix scan-build warning