Skip to content

Commit

Permalink
Merge pull request #716 from Tarsnap/remove-dead-code
Browse files Browse the repository at this point in the history
Remove dead code in archive_entry_xattr_add_entry()
  • Loading branch information
kientzle committed Jun 14, 2016
2 parents ecdac4d + c7fb968 commit 26b6d6d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libarchive/archive_entry_xattr.c
Expand Up @@ -91,9 +91,6 @@ archive_entry_xattr_add_entry(struct archive_entry *entry,
{
struct ae_xattr *xp;

for (xp = entry->xattr_head; xp != NULL; xp = xp->next)
;

if ((xp = (struct ae_xattr *)malloc(sizeof(struct ae_xattr))) == NULL)
__archive_errx(1, "Out of memory");

Expand Down

0 comments on commit 26b6d6d

Please sign in to comment.