[TD-13062]<fix>: file system getline error.

This commit is contained in:
afwerar 2022-02-25 13:06:48 +08:00
parent 64856d599d
commit 0dce2d8053
1 changed files with 1 additions and 0 deletions

View File

@ -308,6 +308,7 @@ int64_t taosWriteFile(TdFilePtr pFile, const void *buf, int64_t count) {
}
int64_t taosLSeekFile(TdFilePtr pFile, int64_t offset, int32_t whence) {
if (pFile == NULL) return -1;
return (int64_t)lseek(pFile->fd, (long)offset, whence);
}