Update util.c: change malloc+memset to calloc.

Cleanup.