diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-23 16:57:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-23 16:57:03 +0400 |
commit | d6d2f09dd9e4df0a3e1168b2fbd3dcf2f9bd8e27 (patch) | |
tree | 1a6e80812e585fbe4bfcf86e453fc0bf566e1b0e /intern | |
parent | 7f56023e9bd95e8817556e0c6ae317434a1bee5a (diff) |
quiet some clang warnings & fix for bugs in exceptional cases.
- ghost C api, BLI_get_folder_version() could assign garbage values.
- pointcache ptcache_find_frames_around() had a superfluous NULL check which would have crashed anyway if actually NULL.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_C-api.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_C-api.cpp b/intern/ghost/intern/GHOST_C-api.cpp index 28058c60499..a1e1bafa82f 100644 --- a/intern/ghost/intern/GHOST_C-api.cpp +++ b/intern/ghost/intern/GHOST_C-api.cpp @@ -403,7 +403,7 @@ GHOST_TSuccess GHOST_GetModifierKeyState(GHOST_SystemHandle systemhandle, { GHOST_ISystem* system = (GHOST_ISystem*) systemhandle; GHOST_TSuccess result; - bool isdown; + bool isdown= false; result = system->getModifierKeyState(mask, isdown); *isDown = (int) isdown; @@ -419,7 +419,7 @@ GHOST_TSuccess GHOST_GetButtonState(GHOST_SystemHandle systemhandle, { GHOST_ISystem* system = (GHOST_ISystem*) systemhandle; GHOST_TSuccess result; - bool isdown; + bool isdown= false; result = system->getButtonState(mask, isdown); *isDown = (int) isdown; |