aboutsummaryrefslogtreecommitdiff
path: root/lib/tar
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tar')
-rw-r--r--lib/tar/read_header.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tar/read_header.c b/lib/tar/read_header.c
index bdb2d20..131f5dc 100644
--- a/lib/tar/read_header.c
+++ b/lib/tar/read_header.c
@@ -223,7 +223,7 @@ static int decode_header(const tar_header_t *hdr, unsigned int set_by_pax,
size_t count;
if (!(set_by_pax & PAX_NAME)) {
- if (hdr->prefix[0] == '\0') {
+ if (hdr->prefix[0] != '\0') {
count = strlen(hdr->name) + 1;
count += strlen(hdr->prefix) + 1;