Commit 9d5cb233 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline
Browse files

Fix Valgrind warnings:

* SystemCPUAffinityMgr::WatchDog::Packet initialization
parent 47b381a4
......@@ -445,8 +445,11 @@ class SystemCPUAffinityMgr
} netdev_affinity;
} u;
Packet(Cmd c=Init) : cmd(c)
{ memset(&u, 0, sizeof(u)); }
Packet(Cmd c=Init)
{
memset(this, 0, sizeof(Packet));
cmd = c;
}
};
typedef NetDevRxQueueAffinityMap NetDevAffinityMap;
typedef Packet::Union::NetDevAffinity PacketNetDevAffinity;
......
Supports Markdown
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