[Xfce4-commits] [apps/xfce4-screensaver] 01/01: Fix CID 213281: Dereference after null check

noreply at xfce.org noreply at xfce.org
Fri Jun 7 04:58:01 CEST 2019


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 64d503021482df19086781ebd59374a2f9c9ba28
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Thu Jun 6 22:57:56 2019 -0400

    Fix CID 213281: Dereference after null check
---
 src/xfce-bg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfce-bg.c b/src/xfce-bg.c
index 8c4603f..3e74647 100644
--- a/src/xfce-bg.c
+++ b/src/xfce-bg.c
@@ -1569,7 +1569,7 @@ find_best_size (GSList *sizes,
             if (d < distance) {
                 distance = d;
                 best = size;
-            } else if (d == distance) {
+            } else if (d == distance && best != NULL) {
                 if (abs (size->width - width) < abs (best->width - width)) {
                     best = size;
                 }

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


More information about the Xfce4-commits mailing list