mirror of
https://github.com/libarchive/libarchive.git
synced 2026-01-26 07:37:55 +00:00
Merge pull request #2825 from AZero13/patch-2
Error check ret before calling copy_seek_stat
This commit is contained in:
commit
e91171c9a0
@ -747,7 +747,8 @@ __la_seek_fstat(int fd, la_seek_stat_t *st)
|
||||
int ret;
|
||||
|
||||
ret = __hstat((HANDLE)_get_osfhandle(fd), &u);
|
||||
copy_seek_stat(st, &u);
|
||||
if (ret >= 0)
|
||||
copy_seek_stat(st, &u);
|
||||
return (ret);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user