Properly memset a variable.

Issue found by cppcheck.