The error is at interfaces.c:351
, it's calling snprintf
with an uninitialized value.
That value was allocated at kernel.c:118
using malloc
. As you probably know, malloc
does not initialize the memory it returns, it might contain garbage. That's what it's complaining about.
Most likely your Interface
object has a char name[]
or some such as the first member, and you pass that member to snprintf
without ever setting it.
Edit: The reason I know the problem is with the first member of Interface
is because if it's some other memory valgrind would say something like Uninitialised value is 4 bytes into a block created by a heap allocation
instead of just Uninitialised value was created by a heap allocation
.