1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-16 22:11:05 +01:00

Fix FdSource::restart() warning

This commit is contained in:
Eelco Dolstra 2025-12-03 19:57:57 +01:00
parent c338f9cc5d
commit 8d0e289fb9

View file

@ -206,7 +206,7 @@ void FdSource::restart()
if (!isSeekable)
throw Error("can't seek to the start of a file");
buffer.reset();
read = bufPosOut = bufPosOut = 0;
read = bufPosIn = bufPosOut = 0;
int fd_ = fromDescriptorReadOnly(fd);
if (lseek(fd_, 0, SEEK_SET) == -1)
throw SysError("seeking to the start of a file");