aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-01 10:56:59 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-01 11:46:40 +0200
commit2f5bbf17fd23ba305d0b5cb1fb595123283df8bc (patch)
treeb758453b762225c59c7e8c8098c80cf56c4dae1f /lib
parent569c430c61d7720919836e1fcbea27f7a0673778 (diff)
Remove unused variable assignment from tar header writer
Mainly to make scan-build happy. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/tar/write_header.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tar/write_header.c b/lib/tar/write_header.c
index d9db24a..0670523 100644
--- a/lib/tar/write_header.c
+++ b/lib/tar/write_header.c
@@ -165,10 +165,10 @@ static int write_pax_header(int fd, const struct stat *sb, const char *name,
ptr = write_pax_entry(ptr, "path", name);
if (S_ISLNK(sb->st_mode)) {
- ptr = write_pax_entry(ptr, "linkpath", slink_target);
+ write_pax_entry(ptr, "linkpath", slink_target);
} else if (S_ISREG(sb->st_mode)) {
sprintf(temp, "%lu", sb->st_size);
- ptr = write_pax_entry(ptr, "size", temp);
+ write_pax_entry(ptr, "size", temp);
}
len = strlen(buffer);