[Xfce4-commits] [apps/xfce4-screensaver] 01/02: Reduce variable scope
noreply at xfce.org
noreply at xfce.org
Fri Jun 7 12:12:09 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 b465d6dc6fe77b5414c91f8e18b61ef7bf6a4cd0
Author: Sean Davis <smd.seandavis at 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.
More information about the Xfce4-commits
mailing list