fix: восстановление проверки fseek

Вероятно в этом месте должна была быть проверка вызова fseek.
This commit is contained in:
Artyom Gavrilov
2025-02-05 23:27:20 +03:00
parent ad6b84a961
commit 34271ece2c

View File

@@ -72,8 +72,8 @@ static int read_file(const char* filename) {
ret = -errno;
goto close_file;
}
fseek(fd, 0, SEEK_SET);
if (ret < 0) {
ret = fseek(fd, 0, SEEK_SET);
if (ret != 0) {
ret = -errno;
goto close_file;
}