Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/dhcp/server Don't attempt to close a random file descri...
details: https://anonhg.NetBSD.org/src/rev/0c453e8fb245
branches: trunk
changeset: 581501:0c453e8fb245
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Jun 02 05:45:59 2005 +0000
description:
Don't attempt to close a random file descriptor.
Detected with gcc -Wuninitialized.
diffstat:
dist/dhcp/server/confpars.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 0f41c293a967 -r 0c453e8fb245 dist/dhcp/server/confpars.c
--- a/dist/dhcp/server/confpars.c Thu Jun 02 05:33:01 2005 +0000
+++ b/dist/dhcp/server/confpars.c Thu Jun 02 05:45:59 2005 +0000
@@ -43,7 +43,7 @@
#ifndef lint
static char copyright[] =
-"$Id: confpars.c,v 1.5 2003/02/18 17:08:44 drochner Exp $ Copyright (c) 1995-2003 The Internet Software Consortium. All rights reserved.\n";
+"$Id: confpars.c,v 1.6 2005/06/02 05:45:59 lukem Exp $ Copyright (c) 1995-2003 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -87,6 +87,7 @@
unsigned tflen, ulen;
trace_type_t *ttype;
+ file = -1;
if (leasep)
ttype = trace_readleases_type;
else
Home |
Main Index |
Thread Index |
Old Index