ee7b75
diff -up ./bzip2recover.c.old ./bzip2recover.c
ee7b75
--- ./bzip2recover.c.old	2016-03-22 08:49:38.855620000 +0100
ee7b75
+++ ./bzip2recover.c	2016-03-30 10:22:27.341430099 +0200
ee7b75
@@ -458,6 +458,7 @@ Int32 main ( Int32 argc, Char** argv )
ee7b75
             bsPutUChar ( bsWr, 0x50 ); bsPutUChar ( bsWr, 0x90 );
ee7b75
             bsPutUInt32 ( bsWr, blockCRC );
ee7b75
             bsClose ( bsWr );
ee7b75
+            outFile = NULL;
ee7b75
          }
ee7b75
          if (wrBlock >= rbCtr) break;
ee7b75
          wrBlock++;