quiet some clang warnings & fix for bugs in exceptional cases.
[blender.git] / intern / ghost / intern / GHOST_C-api.cpp
index 28058c6..a1e1baf 100644 (file)
@@ -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;