diff options
author | Monsta <[email protected]> | 2014-11-08 15:04:54 +0300 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-28 14:53:12 +0100 |
commit | 19aa553b919f336c5f44e59451f52b6f679b953b (patch) | |
tree | 1b974a17bef491e0a7624a55cc3f84328ec3713b /src | |
parent | e54ce9cf54ed6cec762038899b988c95fbb14170 (diff) | |
download | mate-screensaver-19aa553b919f336c5f44e59451f52b6f679b953b.tar.bz2 mate-screensaver-19aa553b919f336c5f44e59451f52b6f679b953b.tar.xz |
avoid dereferencing NULL pointers
Diffstat (limited to 'src')
-rw-r--r-- | src/gs-manager.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gs-manager.c b/src/gs-manager.c index 3aed12f..dc3bce5 100644 --- a/src/gs-manager.c +++ b/src/gs-manager.c @@ -449,7 +449,10 @@ gs_manager_get_lock_active (GSManager *manager, g_return_if_fail (GS_IS_MANAGER (manager)); - *lock_active = manager->priv->lock_active; + if (lock_active != NULL) + { + *lock_active = manager->priv->lock_active; + } } void @@ -483,7 +486,10 @@ gs_manager_get_lock_enabled (GSManager *manager, g_return_if_fail (GS_IS_MANAGER (manager)); - *lock_enabled = manager->priv->lock_enabled; + if (lock_enabled != NULL) + { + *lock_enabled = manager->priv->lock_enabled; + } } void |