Use calloc() instead of malloc + memset