]> Dogcows Code - chaz/tar/blobdiff - src/names.c
* src/common.h (transform_symlinks_option): New global.
[chaz/tar] / src / names.c
index 0c3aebfc6cd4513cb8034bdcad37a588b728ba08..05f89b15d19ab615c793c7dcc4709a436c294ac0 100644 (file)
@@ -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)
This page took 0.024547 seconds and 4 git commands to generate.