Skip to content

Commit 8d0e289

Browse files
committed
Fix FdSource::restart() warning
1 parent c338f9c commit 8d0e289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libutil/serialise.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ void FdSource::restart()
206206
if (!isSeekable)
207207
throw Error("can't seek to the start of a file");
208208
buffer.reset();
209-
read = bufPosOut = bufPosOut = 0;
209+
read = bufPosIn = bufPosOut = 0;
210210
int fd_ = fromDescriptorReadOnly(fd);
211211
if (lseek(fd_, 0, SEEK_SET) == -1)
212212
throw SysError("seeking to the start of a file");

0 commit comments

Comments
 (0)