Skip to content
  • Paul Eggert's avatar
    xalloc: tune xzalloc for fresh allocations · f1a80e85
    Paul Eggert authored
    * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
    because when the memory is freshly allocated from the OS via sbrk
    or mmap, calloc can avoid doing the memset.
    f1a80e85