Commit d4974b52 authored by Michael Ott's avatar Michael Ott
Browse files

Add _oidSuffix to SNMPSensorBase copy constructor

parent 74833be7
......@@ -23,10 +23,11 @@ public:
}
SNMPSensorBase(const SNMPSensorBase& other) :
SensorBase(other),
_oidLen(other._oidLen) {
memset(_oid, 0x0, sizeof(oid) * MAX_OID_LEN);
memcpy(_oid, other._oid, other._oidLen);
SensorBase(other),
_oidSuffix(other._oidSuffix),
_oidLen(other._oidLen) {
memset(_oid, 0x0, sizeof(oid) * MAX_OID_LEN);
memcpy(_oid, other._oid, other._oidLen);
}
virtual ~SNMPSensorBase() {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment