aboutsummaryrefslogtreecommitdiffstats
path: root/src/fsec-print/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fsec-print/main.c')
-rw-r--r--src/fsec-print/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fsec-print/main.c b/src/fsec-print/main.c
index 94c60687f..5a1e34080 100644
--- a/src/fsec-print/main.c
+++ b/src/fsec-print/main.c
@@ -74,7 +74,8 @@ printf("\n");
74 close(fd); 74 close(fd);
75 return 0; 75 return 0;
76errexit: 76errexit:
77 close(fd); 77 if (fd != -1)
78 close(fd);
78 fprintf(stderr, "Error: cannot read %s\n", fname); 79 fprintf(stderr, "Error: cannot read %s\n", fname);
79 exit(1); 80 exit(1);
80 81