mirror of
https://github.com/pnx/m16vm
synced 2026-06-16 03:44:55 +02:00
as/as.c: only close if fd_out is not stdout
This commit is contained in:
parent
eb3e432c91
commit
1a8417bd57
1 changed files with 2 additions and 1 deletions
3
as/as.c
3
as/as.c
|
|
@ -55,6 +55,7 @@ int main(int argc, char **argv) {
|
|||
parse(fd_in, fd_out);
|
||||
|
||||
fclose(fd_in);
|
||||
fclose(fd_out);
|
||||
if (fd_out != stdout)
|
||||
fclose(fd_out);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue