changeset 20091:2ab6b55ffa3d

Rename the internal home_dir variable to user_dir to match the function and the custom_user_dir variable. Additionally, this will avoid confusion with the purple_home_dir() function, which did not use the home_dir variable, as that variable stored the user_dir.
author Richard Laager <rlaager@wiktel.com>
date Sun, 16 Sep 2007 18:59:11 +0000
parents e638dec3d76b
children ab3c87375b17 df2961ce0714
files libpurple/util.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Sun Sep 16 18:11:48 2007 +0000
+++ b/libpurple/util.c	Sun Sep 16 18:59:11 2007 +0000
@@ -68,7 +68,7 @@
 };
 
 static char *custom_user_dir = NULL;
-static char *home_dir = NULL;
+static char *user_dir = NULL;
 
 PurpleMenuAction *
 purple_menu_action_new(const char *label, PurpleCallback callback, gpointer data,
@@ -2464,10 +2464,10 @@
 {
 	if (custom_user_dir != NULL)
 		return custom_user_dir;
-	else if (!home_dir)
-		home_dir = g_build_filename(purple_home_dir(), ".purple", NULL);
-
-	return home_dir;
+	else if (!user_dir)
+		user_dir = g_build_filename(purple_home_dir(), ".purple", NULL);
+
+	return user_dir;
 }
 
 void purple_util_set_user_dir(const char *dir)