summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenus.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-09-03 14:09:04 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-09-03 14:09:04 (GMT)
commit901d7c12a89335301776da04b7616f83cf1d2842 (patch)
treefb2d143d998675e0f031954bae29b91fb6b006e6 /macosx/tkMacOSXMenus.c
parentf1b4b874ffe53d5f6720ea0133c98fb429d6813f (diff)
downloadtk-901d7c12a89335301776da04b7616f83cf1d2842.zip
tk-901d7c12a89335301776da04b7616f83cf1d2842.tar.gz
tk-901d7c12a89335301776da04b7616f83cf1d2842.tar.bz2
Make sure user_data is NULL everywhere it isn't set. [Bug 1021812]
Diffstat (limited to 'macosx/tkMacOSXMenus.c')
-rw-r--r--macosx/tkMacOSXMenus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/tkMacOSXMenus.c b/macosx/tkMacOSXMenus.c
index a24f880..117a298 100644
--- a/macosx/tkMacOSXMenus.c
+++ b/macosx/tkMacOSXMenus.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXMenus.c,v 1.5 2004/04/01 18:33:30 wolfsuit Exp $
+ * RCS: @(#) $Id: tkMacOSXMenus.c,v 1.6 2004/09/03 14:09:05 dkf Exp $
*/
#include "tk.h"
@@ -254,7 +254,8 @@ GenerateEditEvent(
event.y_root = where.v;
event.state = TkMacOSXButtonKeyState();
event.same_screen = true;
-
+ event.user_data = NULL;
+
switch (flag) {
case EDIT_CUT:
event.name = Tk_GetUid("Cut");