Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sysmon Correct possible return of uninitialized erro...



details:   https://anonhg.NetBSD.org/src/rev/433174ef87ef
branches:  trunk
changeset: 537824:433174ef87ef
user:      kristerw <kristerw%NetBSD.org@localhost>
date:      Sun Oct 06 09:48:29 2002 +0000

description:
Correct possible return of uninitialized error variable.

diffstat:

 sys/dev/sysmon/sysmon_wdog.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 26a83e4aaaf2 -r 433174ef87ef sys/dev/sysmon/sysmon_wdog.c
--- a/sys/dev/sysmon/sysmon_wdog.c      Sun Oct 06 08:51:44 2002 +0000
+++ b/sys/dev/sysmon/sysmon_wdog.c      Sun Oct 06 09:48:29 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysmon_wdog.c,v 1.4 2002/07/31 06:48:58 simonb Exp $   */
+/*     $NetBSD: sysmon_wdog.c,v 1.5 2002/10/06 09:48:29 kristerw Exp $ */
 
 /*-
  * Copyright (c) 2000 Zembu Labs, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_wdog.c,v 1.4 2002/07/31 06:48:58 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_wdog.c,v 1.5 2002/10/06 09:48:29 kristerw Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -117,7 +117,7 @@
 sysmonclose_wdog(dev_t dev, int flag, int mode, struct proc *p)
 {
        struct sysmon_wdog *smw;
-       int omode, s, error;
+       int omode, s, error = 0;
 
        /*
         * If this is the last close, and there is a watchdog



Home | Main Index | Thread Index | Old Index