diff options
-rw-r--r-- | Cytore.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -190,7 +190,11 @@ class File { size_t size(stat.st_size); if (size == 0) { - _assert(Truncate_(core)); + if (!Truncate_(core)) { + unlink(path); + _assert(false); + } + Header_().magic_ = Magic; Size_() = core; } else { |