[Xfce4-commits] [apps/ristretto] 01/01: Check pointer against NULL before dereferencing it

noreply at xfce.org noreply at xfce.org
Mon Oct 10 16:43:55 CEST 2016


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

f2404 pushed a commit to branch master
in repository apps/ristretto.

commit 1800634db9e66f350aceaeb8f5f16ffd224cc88e
Author: Igor <f2404 at yandex.ru>
Date:   Mon Oct 10 17:43:50 2016 +0300

    Check pointer against NULL before dereferencing it
---
 src/monitor_chooser.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/monitor_chooser.c b/src/monitor_chooser.c
index d5be3b4..1832aff 100644
--- a/src/monitor_chooser.c
+++ b/src/monitor_chooser.c
@@ -407,6 +407,8 @@ paint_monitor ( GtkWidget *widget,
                 Monitor *monitor,
                 gboolean active)
 {
+    g_return_if_fail (NULL != monitor);
+
     /* Do we want the border_padding to be a percentage of the width
      * parmeter?
      */
@@ -441,8 +443,6 @@ paint_monitor ( GtkWidget *widget,
     PangoLayout *layout;
     PangoFontDescription *font_description;
 
-    g_return_if_fail (NULL != monitor);
-    
     /*
      * Set path for monitor outline and background-color.
      */

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


More information about the Xfce4-commits mailing list