coverity 27342: use memset with '\0' instead of '0'