summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-03-19 01:00:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-03-19 01:00:56 +0000
commit5c7b31f41f64552b06ab021810c99438dd5d9d65 (patch)
tree2645daab65fe7c84f1cbee115b569eda6408c589 /lib/libc
parent5643391d32d8965e97def2dc4d0e58bb24060bc0 (diff)
zap FILE * after closing it
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/getcap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/getcap.c b/lib/libc/gen/getcap.c
index 75013d7c3f9..fa188625975 100644
--- a/lib/libc/gen/getcap.c
+++ b/lib/libc/gen/getcap.c
@@ -35,7 +35,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: getcap.c,v 1.13 1998/03/19 00:30:02 millert Exp $";
+static char rcsid[] = "$OpenBSD: getcap.c,v 1.14 1998/03/19 01:00:55 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -738,6 +738,7 @@ cgetnext(bp, db_array)
return (-1);
}
(void)fclose(pfp);
+ pfp = NULL;
} else
line[len - 1] = '\0';
}