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

bluesabre pushed a 
commit to branch 
master
in repository apps/xfce4-screensaver.

commit b465d6dc6fe77b5414c91f8e18b61ef7bf6a4cd0
Author: Sean Davis <smd.seanda...@gmail.com>
Date:   Fri Jun 7 06:11:06 2019 -0400

    Reduce variable scope
---
 savers/xdg-user-dir-lookup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/savers/xdg-user-dir-lookup.c b/savers/xdg-user-dir-lookup.c
index 47552b0..c60dadc 100644
--- a/savers/xdg-user-dir-lookup.c
+++ b/savers/xdg-user-dir-lookup.c
@@ -183,7 +183,7 @@ error:
 char *
 xdg_user_dir_lookup (const char *type)
 {
-    char *dir, *home_dir, *user_dir;
+    char *dir, *home_dir;
 
     dir = xdg_user_dir_lookup_with_fallback (type, NULL);
     if (dir != NULL)
@@ -196,7 +196,7 @@ xdg_user_dir_lookup (const char *type)
 
     /* Special case desktop for historical compatibility */
     if (strcmp(type, "DESKTOP") == 0) {
-        user_dir = (char *) malloc (strlen (home_dir) + strlen ("/Desktop") + 
1);
+        char *user_dir = (char *) malloc (strlen (home_dir) + strlen 
("/Desktop") + 1);
         if (user_dir == NULL)
             return NULL;
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to