Rename the internal home_dir variable to user_dir to match the function and

Sun, 16 Sep 2007 18:59:11 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Sun, 16 Sep 2007 18:59:11 +0000
changeset 20345
7d5a7a92d0f5
parent 20344
ae961f42574b
child 20346
06c3e9cfdc27
child 20350
ae3f3561e698

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.

libpurple/util.c file | annotate | diff | comparison | revisions
--- 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)

mercurial