--- create_compressed_fs.c.deprecated
+++ create_compressed_fs.c.deprecated	2006/08/17 20:33:25
@@ -94,6 +94,9 @@
      if(r<=0) { last=1; break; }
      total+=r;
     }
    total_uncompressed += total;
+
+   if(!total) break;
+
    if (total != blocksize)
     {
