To enable these paranoia memsets for testing, compile with -DPEDANTIC_VALGRIND_SETUP. Probably more of not completely initialized structs are present in other parts of the code. This is probably not useful for productive builds.