Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic 'error' was not initialized in the _ioctl functio...
details: https://anonhg.NetBSD.org/src/rev/85258ef348e2
branches: trunk
changeset: 500048:85258ef348e2
user: fvdl <fvdl%NetBSD.org@localhost>
date: Mon Dec 04 11:18:49 2000 +0000
description:
'error' was not initialized in the _ioctl function, potentially returning
!= 0 values in the non-error case.
diffstat:
sys/dev/ic/ncr53c9x.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 9fbfd0dc00e5 -r 85258ef348e2 sys/dev/ic/ncr53c9x.c
--- a/sys/dev/ic/ncr53c9x.c Mon Dec 04 11:05:32 2000 +0000
+++ b/sys/dev/ic/ncr53c9x.c Mon Dec 04 11:18:49 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ncr53c9x.c,v 1.61 2000/12/03 23:25:24 eeh Exp $ */
+/* $NetBSD: ncr53c9x.c,v 1.62 2000/12/04 11:18:49 fvdl Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -888,7 +888,7 @@
struct proc *p;
{
struct ncr53c9x_softc *sc = link->adapter_softc;
- int s, error;
+ int s, error = 0;
s = splbio();
Home |
Main Index |
Thread Index |
Old Index