Optimize EOF check in hed_file_erase_block
commitd29bd879b62418331eb1001b226cc74a4c206f2a
authorPetr Tesarik <petr@tesarici.cz>
Tue, 16 Oct 2012 23:31:10 +0000 (17 01:31 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Tue, 16 Oct 2012 23:31:10 +0000 (17 01:31 +0200)
treeb4b656c2b85353509fb222643013db36008fb0ba
parent4748719030e972e972a11010b7a37e33b892e614
Optimize EOF check in hed_file_erase_block

Instead of checking the file size, terminate the erase on encountering
the EOF block.
libhed/file.c