diff options
author | 2020-01-22 20:13:44 +0100 | |
---|---|---|
committer | 2020-01-22 20:13:44 +0100 | |
commit | 661eac117591a59761b046f259972dc1802d5314 (patch) | |
tree | fa194d7457c96e6be2a165148c33903d1d0a993b /qtbz2.c | |
parent | libq/colors: fix Coverity 183476 Buffer not null terminated (diff) | |
download | portage-utils-661eac117591a59761b046f259972dc1802d5314.tar.gz portage-utils-661eac117591a59761b046f259972dc1802d5314.tar.bz2 portage-utils-661eac117591a59761b046f259972dc1802d5314.zip |
qtbz2: fix Coverity 125889 Unchecked return value
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qtbz2.c')
-rw-r--r-- | qtbz2.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -139,7 +139,8 @@ _tbz2_write_file(FILE *src, int dir_fd, const char *dst, size_t len) FILE *out; if (!dst) { - fseek(src, len, SEEK_CUR); + if (fseek(src, len, SEEK_CUR) == -1) + errp("cannot seek to pos %zd: %s", len, strerror(errno)); return; } |