Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pad Unitialized variable - CID/1428657



details:   https://anonhg.NetBSD.org/src/rev/0246d451344b
branches:  trunk
changeset: 829347:0246d451344b
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Jan 26 22:48:22 2018 +0000

description:
Unitialized variable - CID/1428657

diffstat:

 sys/dev/pad/pad.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r e4be71d15ee6 -r 0246d451344b sys/dev/pad/pad.c
--- a/sys/dev/pad/pad.c Fri Jan 26 17:49:55 2018 +0000
+++ b/sys/dev/pad/pad.c Fri Jan 26 22:48:22 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pad.c,v 1.50 2018/01/09 04:23:59 nat Exp $ */
+/* $NetBSD: pad.c,v 1.51 2018/01/26 22:48:22 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.50 2018/01/09 04:23:59 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.51 2018/01/26 22:48:22 pgoyette Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -308,6 +308,8 @@
        cfdata_t cf;
        int error, fd, i;
 
+       erorr = 0;
+
        mutex_enter(&padconfig);
        if (PADUNIT(dev) == PADCLONER) {
                for (i = 0; i < MAXDEVS; i++) {



Home | Main Index | Thread Index | Old Index