Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sysmon Be sure to always initialize props variable t...
details: https://anonhg.NetBSD.org/src/rev/98712da24da0
branches: trunk
changeset: 759780:98712da24da0
user: njoly <njoly%NetBSD.org@localhost>
date: Thu Dec 16 16:08:57 2010 +0000
description:
Be sure to always initialize props variable to a sensible value.
Fix a problem with envstat -S call which was installing bogus/random
limits.
ok pgoyette.
diffstat:
sys/dev/sysmon/sysmon_envsys.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r dd182c7fc793 -r 98712da24da0 sys/dev/sysmon/sysmon_envsys.c
--- a/sys/dev/sysmon/sysmon_envsys.c Thu Dec 16 15:55:41 2010 +0000
+++ b/sys/dev/sysmon/sysmon_envsys.c Thu Dec 16 16:08:57 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_envsys.c,v 1.110 2010/12/15 17:17:16 pgoyette Exp $ */
+/* $NetBSD: sysmon_envsys.c,v 1.111 2010/12/16 16:08:57 njoly Exp $ */
/*-
* Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.110 2010/12/15 17:17:16 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.111 2010/12/16 16:08:57 njoly Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -1136,6 +1136,7 @@
/*
* Next, we need to retrieve those initial limits.
*/
+ props = 0;
edata->upropset &= ~PROP_LIMITS;
if (sme->sme_get_limits) {
DPRINTF(("%s: retrieve limits for %s %s\n",
Home |
Main Index |
Thread Index |
Old Index