mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-27 04:30:35 +03:00
fix: изменение проверки fseek
По стандарту fseek при неудаче возвращает любое значение кроме нуля.
This commit is contained in:
@@ -62,7 +62,7 @@ static int read_file(const char* filename) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = fseek(fd, 0, SEEK_END);
|
ret = fseek(fd, 0, SEEK_END);
|
||||||
if (ret < 0) {
|
if (ret != 0) {
|
||||||
ret = -errno;
|
ret = -errno;
|
||||||
goto close_file;
|
goto close_file;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user