summaryrefslogtreecommitdiffstats
path: root/carbon
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-01-02 11:07:55 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-01-02 11:07:55 (GMT)
commit8a3e46aada6943f89dfdb746116c20fe332535eb (patch)
tree74ec102e33450a1e4e9ce197bebd5e9082d2738f /carbon
parent1a86dacbaaea58d12f5c210efdd06d8974adc362 (diff)
downloadtk-8a3e46aada6943f89dfdb746116c20fe332535eb.zip
tk-8a3e46aada6943f89dfdb746116c20fe332535eb.tar.gz
tk-8a3e46aada6943f89dfdb746116c20fe332535eb.tar.bz2
Fix [Bug 1373712] and [Bug 1924761].
Diffstat (limited to 'carbon')
-rw-r--r--carbon/tkMacOSXKeyEvent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/carbon/tkMacOSXKeyEvent.c b/carbon/tkMacOSXKeyEvent.c
index 5bce60d..5ffdbd5 100644
--- a/carbon/tkMacOSXKeyEvent.c
+++ b/carbon/tkMacOSXKeyEvent.c
@@ -48,7 +48,7 @@
* permission to use and distribute the software in accordance with the
* terms specified in this license.
*
- * RCS: @(#) $Id: tkMacOSXKeyEvent.c,v 1.1 2009/06/26 01:42:47 das Exp $
+ * RCS: @(#) $Id: tkMacOSXKeyEvent.c,v 1.2 2010/01/02 11:07:55 dkf Exp $
*/
#include "tkMacOSXPrivate.h"
@@ -489,6 +489,7 @@ InitKeyEvent(
return -1;
}
+ memset(eventPtr, 0, sizeof(XEvent));
eventPtr->xany.send_event = false;
eventPtr->xany.serial = Tk_Display(tkwin)->request;