First assign the size, then use it for calloc