aboutsummaryrefslogtreecommitdiffstats
path: root/getpass.c
diff options
context:
space:
mode:
Diffstat (limited to 'getpass.c')
-rw-r--r--getpass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/getpass.c b/getpass.c
index e54adcad..8ec86a74 100644
--- a/getpass.c
+++ b/getpass.c
@@ -131,7 +131,7 @@ char *prompt;
signal(SIGINT, sig);
}
if (fi != stdin)
- fclose(fi);
+ fclose(fi); /* not checking should be safe, file mode was "r" */
return(pbuf);
#endif /* !(defined(HAVE_TCSETATTR) || ... */