From: notaz Date: Sat, 7 Jan 2012 21:02:42 +0000 (+0000) Subject: xenv: init g_kbdfd, as 0 is stdin X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3797b7de4240e03a647664e7b5524e314506d31b;p=libpicofe.git xenv: init g_kbdfd, as 0 is stdin git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@941 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/linux/xenv.c b/linux/xenv.c index 1febde7..3de7628 100644 --- a/linux/xenv.c +++ b/linux/xenv.c @@ -186,7 +186,7 @@ static int x11h_update(int *is_down) } static struct termios g_kbd_termios_saved; -static int g_kbdfd; +static int g_kbdfd = -1; static int tty_init(void) {