Module Name: src
Committed By: pgoyette
Date: Fri Jan 26 22:48:22 UTC 2018
Modified Files:
src/sys/dev/pad: pad.c
Log Message:
Unitialized variable - CID/1428657
To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/pad/pad.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pad/pad.c
diff -u src/sys/dev/pad/pad.c:1.50 src/sys/dev/pad/pad.c:1.51
--- src/sys/dev/pad/pad.c:1.50 Tue Jan 9 04:23:59 2018
+++ src/sys/dev/pad/pad.c Fri Jan 26 22:48:22 2018
@@ -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 <[email protected]>
@@ -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 @@ pad_open(dev_t dev, int flags, int fmt,
cfdata_t cf;
int error, fd, i;
+ erorr = 0;
+
mutex_enter(&padconfig);
if (PADUNIT(dev) == PADCLONER) {
for (i = 0; i < MAXDEVS; i++) {