using a stack variable to avoid testing calloc() return value and error
handling foo