Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-10-27 10:05:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-10-27 10:05:55 +0400
commit6aaccb69cc763e6a7742f0ca9ef7daa798072f04 (patch)
tree42c0c56e8bb318b19e4a33bd2715165206b810c9
parentf7d5cea669bd40de9c0aa5fc3aaa4c7f49f697a8 (diff)
utf8 buffer wasn't being initialized in ghost_event_proc
-rw-r--r--source/blender/windowmanager/intern/wm_window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 250f431dc9a..fe967bbcd1c 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -648,7 +648,8 @@ static int ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr private)
// window_handle(win, INPUTCHANGE, win->active);
/* bad ghost support for modifier keys... so on activate we set the modifiers again */
- kdata.ascii= 0;
+ kdata.ascii= '\0';
+ kdata.utf8_buf[0]= '\0';
if (win->eventstate->shift && !query_qual(SHIFT)) {
kdata.key= GHOST_kKeyLeftShift;
wm_event_add_ghostevent(wm, win, GHOST_kEventKeyUp, time, &kdata);