X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fnames.c;h=05f89b15d19ab615c793c7dcc4709a436c294ac0;hb=57bfbbde90dfcc18ee6b1e27c01ba915ecc56312;hp=0c3aebfc6cd4513cb8034bdcad37a588b728ba08;hpb=7b69ee5a240bf25a7b65e7724248f2dd3f7e4836;p=chaz%2Ftar diff --git a/src/names.c b/src/names.c index 0c3aebf..05f89b1 100644 --- a/src/names.c +++ b/src/names.c @@ -388,9 +388,7 @@ name_gather (void) if (allocated_size == 0) { allocated_size = offsetof (struct name, name) + NAME_FIELD_SIZE + 1; - buffer = xmalloc (allocated_size); - /* FIXME: This memset is overkill, and ugly... */ - memset (buffer, 0, allocated_size); + buffer = xzalloc (allocated_size); } while ((ep = name_next_elt (0)) && ep->type == NELT_CHDIR)