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>2010-01-26 13:14:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-26 13:14:39 +0300
commit4e92b694111b811d9eae130a76a6d8861b3ddc1c (patch)
tree507400618aed5100261b82cd0fb214a203719cf1 /source/blender/windowmanager/intern/wm_keymap.c
parente6c4aee39a955ded3357c412bea586fe72edd7ac (diff)
set the keymap to NULL if its not found so as not to use it un-initializes.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_keymap.c')
-rw-r--r--source/blender/windowmanager/intern/wm_keymap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c
index ff06005c620..2fa4b022ff9 100644
--- a/source/blender/windowmanager/intern/wm_keymap.c
+++ b/source/blender/windowmanager/intern/wm_keymap.c
@@ -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;
}