set the keymap to NULL if its not found so as not to use it un-initializes.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 26 Jan 2010 10:14:39 +0000 (10:14 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 26 Jan 2010 10:14:39 +0000 (10:14 +0000)
source/blender/windowmanager/intern/wm_keymap.c

index ff06005c620d52ec97ca44561614ccf31f8c1997..2fa4b022ff9116c7ad7635a945183fcae42198db 100644 (file)
@@ -430,6 +430,8 @@ static wmKeyMapItem *wm_keymap_item_find_handlers(const bContext *C, ListBase *h
                }
        }
        
+       /* ensure un-initialized keymap is never used */
+       if(keymap_r) *keymap_r= NULL;
        return NULL;
 }