From 81ef0b9345dd393fea8edab879ee1fd8f0bf9e81 Mon Sep 17 00:00:00 2001 From: runge Date: Sat, 27 Oct 2007 22:45:30 +0000 Subject: x11vnc: -proxy, -ssh options. ncache bug in -8to24, Selection "targets" bugfix. --- x11vnc/keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'x11vnc/keyboard.c') diff --git a/x11vnc/keyboard.c b/x11vnc/keyboard.c index 2dc8f83..bbdab3b 100644 --- a/x11vnc/keyboard.c +++ b/x11vnc/keyboard.c @@ -1755,7 +1755,7 @@ static void xkb_tweak_keyboard(rfbBool down, rfbKeySym keysym, if (khints && keysym < 0x100) { /* low keysyms, ascii, only */ int ks = (int) keysym; - int ok = 1, lbest, l; + int ok = 1, lbest = 0, l; short sbest = -1; for (l=0; l < found; l++) { if (kc_f[l] < 0x100) { @@ -1820,7 +1820,7 @@ static void xkb_tweak_keyboard(rfbBool down, rfbKeySym keysym, /* next just check for "best" one that is down */ if (Kc_f == -1 && anydown) { int l; - int best = -1, lbest; + int best = -1, lbest = 0; /* * If it is already down, that is * a great hint. Use it. -- cgit v1.2.1