utf8 buffer wasn't being initialized in ghost_event_proc
authorCampbell Barton <ideasman42@gmail.com>
Thu, 27 Oct 2011 06:05:55 +0000 (06:05 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 27 Oct 2011 06:05:55 +0000 (06:05 +0000)
source/blender/windowmanager/intern/wm_window.c

index 250f431..fe967bb 100644 (file)
@@ -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);