[Xfce4-commits] [apps/xfce4-screensaver] 01/01: Fix CID 213280: Constant variable guards dead code

noreply at xfce.org noreply at xfce.org
Fri Jun 7 05:37:28 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 b4a71cf07debf2bd3de6427fdec519385418a94c
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Thu Jun 6 23:37:22 2019 -0400

    Fix CID 213280: Constant variable guards dead code
---
 src/xfce4-screensaver-dialog.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/xfce4-screensaver-dialog.c b/src/xfce4-screensaver-dialog.c
index 9678659..3fb33d9 100644
--- a/src/xfce4-screensaver-dialog.c
+++ b/src/xfce4-screensaver-dialog.c
@@ -518,24 +518,18 @@ static gboolean lock_initialization (int       *argc,
          * to bring any other Mac program to the front, e.g., Terminal.)
          */
         {
-            gboolean macos = FALSE;
-
             #ifdef __APPLE__
                 /* Disable locking if *running* on Apple hardware, since we have no
                  * reliable way to determine whether the server is running on MacOS.
                  * Hopefully __APPLE__ means "MacOS" and not "Linux on Mac hardware"
                  * but I'm not really sure about that.
                  */
-                macos = TRUE;
-            #endif /* __APPLE__ */
-
-            if (macos) {
                 if (nolock_reason != NULL) {
                     *nolock_reason = g_strdup("Cannot lock securely on MacOS X");
                 }
 
                 return FALSE;
-            }
+            #endif /* __APPLE__ */
         }
 
     #endif /* NO_LOCKING */

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


More information about the Xfce4-commits mailing list