Assert that the file size is above zero

This commit is contained in:
Imbus 2026-02-07 13:51:44 +01:00
parent 88a1a87ca6
commit c11bdd7f47

View file

@ -207,6 +207,8 @@ int main(int argc, char *argv[]) {
wjob.bufsize = BLOCKSIZE;
wjob.block_size = BLOCKSIZE;
assert(file_stat.st_size >= 0);
perform_write(&wjob);
if (wjob.buffer)