Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen reset fp when we are done with it.
details: https://anonhg.NetBSD.org/src/rev/00b891c7c282
branches: trunk
changeset: 534468:00b891c7c282
user: christos <christos%NetBSD.org@localhost>
date: Sat Jul 27 15:44:45 2002 +0000
description:
reset fp when we are done with it.
diffstat:
lib/libc/gen/utmpx.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 0a41b0766b60 -r 00b891c7c282 lib/libc/gen/utmpx.c
--- a/lib/libc/gen/utmpx.c Sat Jul 27 14:37:00 2002 +0000
+++ b/lib/libc/gen/utmpx.c Sat Jul 27 15:44:45 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: utmpx.c,v 1.7 2002/07/23 00:03:36 simonb Exp $ */
+/* $NetBSD: utmpx.c,v 1.8 2002/07/27 15:44:45 christos Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: utmpx.c,v 1.7 2002/07/23 00:03:36 simonb Exp $");
+__RCSID("$NetBSD: utmpx.c,v 1.8 2002/07/27 15:44:45 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -81,8 +81,10 @@
{
(void)memset(&ut, 0, sizeof(ut));
- if (fp != NULL)
+ if (fp != NULL) {
(void)fclose(fp);
+ fp = NULL;
+ }
}
Home |
Main Index |
Thread Index |
Old Index