summaryrefslogtreecommitdiffstats
path: root/x11vnc/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/keyboard.c')
-rw-r--r--x11vnc/keyboard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/x11vnc/keyboard.c b/x11vnc/keyboard.c
index a3f0120..d52d7cf 100644
--- a/x11vnc/keyboard.c
+++ b/x11vnc/keyboard.c
@@ -259,7 +259,7 @@ void clear_locks(void) {
#else
XModifierKeymap *map;
int i, j, k = 0;
- unsigned int state;
+ unsigned int state = 0;
RAWFB_RET_VOID
@@ -279,6 +279,7 @@ void clear_locks(void) {
#endif
{
state = mask_state();
+ /* this may contain non-locks too... */
rfbLog("state: 0x%x\n", state);
}
if (! state) {