From 9335742e168138d8ead90bb06d63a7ba2ca80493 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 4 Dec 2007 22:20:25 +0000 Subject: [PATCH] Formatting & whitespace removal. SVN revision: 32985 --- src/bin/e_user.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bin/e_user.c b/src/bin/e_user.c index 0852944dc..e778be0c5 100644 --- a/src/bin/e_user.c +++ b/src/bin/e_user.c @@ -9,7 +9,7 @@ e_user_homedir_get(void) { char *homedir; int len; - + homedir = getenv("HOME"); if (!homedir) return "/tmp"; len = strlen(homedir); @@ -30,9 +30,10 @@ EAPI const char * e_user_desktop_dir_get(void) { static char dir[PATH_MAX] = ""; + if (!dir[0]) - snprintf(dir, sizeof(dir), "%s/applications", efreet_data_home_get()); - + snprintf(dir, sizeof(dir), "%s/applications", efreet_data_home_get()); + return dir; } @@ -45,10 +46,9 @@ EAPI const char * e_user_icon_dir_get(void) { static char dir[PATH_MAX] = ""; + if (!dir[0]) snprintf(dir, sizeof(dir), "%s/icons", efreet_data_home_get()); - + return dir; } - -