fiasco: In simulate mode do not close invalid not open fd
This commit is contained in:
1 parent
ccef3c6daa
commit
79af7395bf
1 file changed
+3
-1
+3
-1
@@ -443,7 +443,9 @@ int fiasco_write_to_file(struct fiasco * fiasco, const char * file) {
|
||||
|
||||
}
|
||||
|
||||
close(fd);
|
||||
if ( ! simulate )
|
||||
close(fd);
|
||||
|
||||
printf("\nDone\n\n");
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user