[Bf-blender-cvs] [c4ce1b70e39] master: Correct error in 3dc44f8c89acc082334034982ffc8bc802f23475

Campbell Barton noreply at git.blender.org
Mon Mar 21 07:21:54 CET 2022


Commit: c4ce1b70e398785e372546daea7a33347e6767f7
Author: Campbell Barton
Date:   Mon Mar 21 17:20:41 2022 +1100
Branches: master
https://developer.blender.org/rBc4ce1b70e398785e372546daea7a33347e6767f7

Correct error in 3dc44f8c89acc082334034982ffc8bc802f23475

The array for event.flag was too big, harmless but incorrect.
Remove the size from the declaration as it's not needed.

===================================================================

M	source/blender/windowmanager/intern/wm_event_query.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_event_query.c b/source/blender/windowmanager/intern/wm_event_query.c
index 6a8ecdafd69..503dae53122 100644
--- a/source/blender/windowmanager/intern/wm_event_query.c
+++ b/source/blender/windowmanager/intern/wm_event_query.c
@@ -88,7 +88,7 @@ void WM_event_print(const wmEvent *event)
 
     char modifier_id[128];
     {
-      struct FlagIdentifierPair flag_data[4] = {
+      struct FlagIdentifierPair flag_data[] = {
           {"SHIFT", KM_SHIFT},
           {"CTRL", KM_CTRL},
           {"ALT", KM_ALT},
@@ -100,7 +100,7 @@ void WM_event_print(const wmEvent *event)
 
     char flag_id[128];
     {
-      struct FlagIdentifierPair flag_data[4] = {
+      struct FlagIdentifierPair flag_data[] = {
           {"SCROLL_INVERT", WM_EVENT_SCROLL_INVERT},
           {"IS_REPEAT", WM_EVENT_IS_REPEAT},
           {"FORCE_DRAG_THRESHOLD", WM_EVENT_FORCE_DRAG_THRESHOLD},



More information about the Bf-blender-cvs mailing list