Use calloc to allocate the result structure to initialize the object data