From 26756b7a58824f3adf1a7d2643bd1e89d1a6ee34 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Sun, 10 Jun 2007 01:49:17 +0000 Subject: [PATCH] The new compiler can't quite follow the logic of has_stime and complains about using uninitialized tags in stime. --- sys/kern/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index c543c8fa818a..bd89a41aef72 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;