[Xfce4-commits] [apps/xfce4-screensaver] 161/425: avoid dereferencing NULL pointers

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:50:08 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit 19aa553b919f336c5f44e59451f52b6f679b953b
Author: Monsta <monsta at inbox.ru>
Date:   Sat Nov 8 15:04:54 2014 +0300

    avoid dereferencing NULL pointers
---
 src/gs-manager.c | 10 ++++++++--
 1 file 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list