mirror of https://github.com/YosysHQ/yosys.git
And another place we need to lseek() after dup().
This commit is contained in:
parent
635aa2a3fc
commit
7dcc9c664e
|
@ -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…
Reference in New Issue