coverity 27343, 27344: use memset with '\0' instead of '0'