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