From 6479d4e01ea98701892d453ac41cf50e21194330 Mon Sep 17 00:00:00 2001 From: Ben Byer Date: Wed, 31 Oct 2007 16:19:46 -0700 Subject: [PATCH] fixed an uninitialized variable, which caused keyboard breakage on x86 when building with optimization enabled. --- hw/darwin/quartz/quartzKeyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/darwin/quartz/quartzKeyboard.c b/hw/darwin/quartz/quartzKeyboard.c index f9c596370..3ecee3ac1 100644 --- a/hw/darwin/quartz/quartzKeyboard.c +++ b/hw/darwin/quartz/quartzKeyboard.c @@ -220,7 +220,7 @@ DarwinModeReadSystemKeymap (darwinKeyboardInfo *info) const void *chr_data = NULL; int num_keycodes = NUM_KEYCODES; UInt32 keyboard_type = 0; - int is_uchr, i, j; + int is_uchr = 0, i, j; OSStatus err; KeySym *k;