diff options
author | mjacob <mjacob@FreeBSD.org> | 2007-06-10 01:49:17 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2007-06-10 01:49:17 +0000 |
commit | c3eaa66d3402f37518e2e58d4d977f15f5843b13 (patch) | |
tree | 7d37c15e4580f1d1583bc5643b790131e4a764f8 | |
parent | 8578bcf99369c7b3386e9b4523cef3f77f0f604a (diff) | |
download | FreeBSD-src-c3eaa66d3402f37518e2e58d4d977f15f5843b13.zip FreeBSD-src-c3eaa66d3402f37518e2e58d4d977f15f5843b13.tar.gz |
The new compiler can't quite follow the logic of has_stime and
complains about using uninitialized tags in stime.
-rw-r--r-- | sys/kern/tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index c543c8f..bd89a41 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1720,7 +1720,7 @@ ttread(struct tty *tp, struct uio *uio, int flag) int s, first, error = 0; int has_stime = 0, last_cc = 0; long slp = 0; /* XXX this should be renamed `timo'. */ - struct timeval stime; + struct timeval stime = { 0, 0 }; struct pgrp *pg; td = curthread; |