[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:01:47 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 9685cc368d33c8f95ae368d2661061a64248c2f5
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Thu Jun 6 23:01:41 2019 -0400

    Fix CID 213280: Constant variable guards dead code
---
 src/test-passwd.c | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/src/test-passwd.c b/src/test-passwd.c
index 18ad415..b093065 100644
--- a/src/test-passwd.c
+++ b/src/test-passwd.c
@@ -109,23 +109,17 @@ lock_initialization (char **nolock_reason) {
        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
-
-        if (macos) {
-            if (nolock_reason) {
-                *nolock_reason = g_strdup ("Cannot lock securely on MacOS X");
-            }
-            return FALSE;
+        if (nolock_reason) {
+            *nolock_reason = g_strdup ("Cannot lock securely on MacOS X");
         }
+        return FALSE;
+#endif
     }
 
 #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