Fix possible calloc of 0