aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-23 13:49:21 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-23 13:56:33 +0200
commit4a71987b92057c3f18df344bba0d7d77b0f7acee (patch)
tree4d691379a635b400ae30a7ba6254d6aed127d2fb /tests
parent606ca3c3a8db01f166066cd5c1b17f0d376fbb39 (diff)
Fix tar_fuzz error check after seek
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/tar_fuzz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tar_fuzz.c b/tests/tar_fuzz.c
index aa82a50..dad3d5a 100644
--- a/tests/tar_fuzz.c
+++ b/tests/tar_fuzz.c
@@ -40,7 +40,7 @@ int main(int argc, char **argv)
ret = lseek(fd, hdr.sb.st_size, SEEK_CUR);
clear_header(&hdr);
- if (ret)
+ if (ret < 0)
goto fail;
}