CID 991761: potential double close (and white space fix)

This commit is contained in:
Philippe Saint-Pierre
2014-07-15 15:34:36 -04:00
parent d32cb23734
commit eda1d21fde
+2 -1
View File
@@ -240,6 +240,7 @@ chop_file(int fdin, char *fname, off_t fsize)
} }
} }
// close up the last output file // close up the last output file if it's still open
if (!open_next_file)
close(fdout); close(fdout);
} }