summaryrefslogtreecommitdiffstats
path: root/xrdp/lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'xrdp/lang.c')
-rw-r--r--xrdp/lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xrdp/lang.c b/xrdp/lang.c
index 2f2a3da5..5ffff0eb 100644
--- a/xrdp/lang.c
+++ b/xrdp/lang.c
@@ -231,7 +231,7 @@ get_keymaps(int keylayout, struct xrdp_keymap *keymap)
{
fd = g_file_open(filename);
- if (fd > 0)
+ if (fd != -1)
{
lkeymap = (struct xrdp_keymap *)g_malloc(sizeof(struct xrdp_keymap), 0);
/* make a copy of the build in kaymap */