Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Um, hi, let's initialize pointers before we use them.
details: https://anonhg.NetBSD.org/src/rev/0c86bbf56848
branches: trunk
changeset: 473744:0c86bbf56848
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Jun 17 23:17:45 1999 +0000
description:
Um, hi, let's initialize pointers before we use them.
diffstat:
sys/kern/uipc_usrreq.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 0cda72859174 -r 0c86bbf56848 sys/kern/uipc_usrreq.c
--- a/sys/kern/uipc_usrreq.c Thu Jun 17 22:22:41 1999 +0000
+++ b/sys/kern/uipc_usrreq.c Thu Jun 17 23:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_usrreq.c,v 1.44 1999/05/05 20:01:10 thorpej Exp $ */
+/* $NetBSD: uipc_usrreq.c,v 1.45 1999/06/17 23:17:45 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -1175,15 +1175,16 @@
}
}
for (i = nunref, fpp = extra_ref; --i >= 0; ++fpp) {
+ fp = *fpp;
FILE_USE(fp);
- fp = *fpp;
if (fp->f_type == DTYPE_SOCKET)
sorflush((struct socket *)fp->f_data);
FILE_UNUSE(fp, NULL);
}
for (i = nunref, fpp = extra_ref; --i >= 0; ++fpp) {
+ fp = *fpp;
FILE_USE(fp);
- (void) closef(*fpp, (struct proc *)0);
+ (void) closef(fp, (struct proc *)0);
}
free((caddr_t)extra_ref, M_FILE);
unp_gcing = 0;
Home |
Main Index |
Thread Index |
Old Index