Change `malloc` to `calloc` to avoid using `memset`.