artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb0bed9
)
Init a variable to zero so values aren't or'd into uninitialised memory.
author
jsg
<jsg@openbsd.org>
Wed, 22 Apr 2015 11:39:04 +0000
(11:39 +0000)
committer
jsg
<jsg@openbsd.org>
Wed, 22 Apr 2015 11:39:04 +0000
(11:39 +0000)
From jeundery at gmail dot com
sys/arch/armv7/sunxi/sxiuart.c
patch
|
blob
|
history
diff --git
a/sys/arch/armv7/sunxi/sxiuart.c
b/sys/arch/armv7/sunxi/sxiuart.c
index
b2cddfd
..
5a7136f
100644
(file)
--- a/
sys/arch/armv7/sunxi/sxiuart.c
+++ b/
sys/arch/armv7/sunxi/sxiuart.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sxiuart.c,v 1.
3 2013/11/06 19:03:07 syl
Exp $ */
+/* $OpenBSD: sxiuart.c,v 1.
4 2015/04/22 11:39:04 jsg
Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@motorola.com>
* Copyright (c) 2013 Artturi Alm
@@
-306,8
+306,7
@@
sxiuart_param(struct tty *tp, struct termios *t)
int error;
tcflag_t oldcflag;
uint16_t ratediv;
- uint8_t lcr;
-
+ uint8_t lcr = 0;
if (t->c_ospeed < 0 || (t->c_ispeed && t->c_ispeed != t->c_ospeed))
return (EINVAL);