Add assert() calls to ensure consistent handling of the empty flag
commite5df3638d79c51c464d89e7c26d45d0c615af1ff
authorPetr Tesarik <petr@tesarici.cz>
Thu, 17 May 2018 07:13:52 +0000 (17 09:13 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Thu, 17 May 2018 07:13:52 +0000 (17 09:13 +0200)
treed8d0de13659db8045c7bd5d91c2d0da0e43df79a
parent3b59bb24f977cde3f003ae1b82efd1907f65a989
Add assert() calls to ensure consistent handling of the empty flag

If a new block is created without the empty flag, make sure that its
size is non-zero.

When a block must not be empty, add the corresponding check.

When block size is set to a value, ensure that this value is not
zero.

Signed-off-by: Petr Tesarik <petr@tesarici.cz>
libhed/file.c