From e03fbe8eaeda46a4e3a4e5cc529eefa8c92c0a85 Mon Sep 17 00:00:00 2001
From: notaz <notasas@gmail.com>
Date: Sat, 7 Jan 2012 21:02:42 +0000
Subject: [PATCH] xenv: init g_kbdfd, as 0 is stdin

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@941 be3aeb3a-fb24-0410-a615-afba39da0efa
---
 platform/linux/xenv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/platform/linux/xenv.c b/platform/linux/xenv.c
index 1febde7b..3de7628e 100644
--- a/platform/linux/xenv.c
+++ b/platform/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)
 {
-- 
2.39.5