Mike McCormack : winex11.drv: Avoid an uninitialized variable warning.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 24 06:55:08 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 6eb4bfe85f9e7970f3eee58c52cc3c5ecef3ce36
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=6eb4bfe85f9e7970f3eee58c52cc3c5ecef3ce36

Author: Mike McCormack <mike at codeweavers.com>
Date:   Mon Jul 24 14:01:14 2006 +0900

winex11.drv: Avoid an uninitialized variable warning.

---

 dlls/winex11.drv/keyboard.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index d9a1bf3..9c35aa2 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -1446,7 +1446,7 @@ X11DRV_KEYBOARD_DetectLayout (void)
   Display *display = thread_display();
   unsigned current, match, mismatch, seq, i, syms;
   int score, keyc, key, pkey, ok;
-  KeySym keysym;
+  KeySym keysym = 0;
   const char (*lkey)[MAIN_LEN][4];
   unsigned max_seq = 0;
   int max_score = 0, ismatch = 0;




More information about the wine-cvs mailing list