initialize structure to 0

This commit is contained in:
Ray Strode 2008-06-19 11:24:25 -04:00
parent 4239c79497
commit 36e3dd8abe

View file

@ -287,7 +287,7 @@ static int
get_active_vt (void)
{
int console_fd;
struct vt_stat console_state;
struct vt_stat console_state = { 0 };
console_fd = open ("/dev/tty0", O_RDONLY | O_NOCTTY);