mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
And another place we need to lseek() after dup().
This commit is contained in:
parent
635aa2a3fc
commit
7dcc9c664e
1 changed files with 1 additions and 0 deletions
|
@ -3607,6 +3607,7 @@ static int fstReaderRecreateHierFile(struct fstReaderContext *xc)
|
|||
fflush(xc->f);
|
||||
#endif
|
||||
zfd = dup(fileno(xc->f));
|
||||
lseek(zfd, ftell(xc->f), SEEK_SET);
|
||||
zhandle = gzdopen(zfd, "rb");
|
||||
if (!zhandle) {
|
||||
close(zfd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue