summary refs log tree commit diff stats
path: root/src/common/plugin.c
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-11-30 07:32:40 +0100
committerBerke Viktor <berkeviktor@aol.com>2011-11-30 07:32:40 +0100
commitf49caf67f642336888a63d61f60b458236df19ad (patch)
tree59b62d2fbc3a0ea1e880ebdd3087519dbc750b27 /src/common/plugin.c
parent2fac353c85ee186b7efa94af6552f676f717cc89 (diff)
cosmetics
Diffstat (limited to 'src/common/plugin.c')
-rw-r--r--src/common/plugin.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/plugin.c b/src/common/plugin.c
index 1e930538..41690038 100644
--- a/src/common/plugin.c
+++ b/src/common/plugin.c
@@ -1613,10 +1613,12 @@ xchat_set_plugin_pref (xchat_plugin *pl, char *var, char *value)
 		close (fhOut);
 
 		sprintf (buffer, "%s/%s", get_xdir_fs (), confname);
+		sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp);
+
 #ifdef WIN32
 		unlink (buffer);
 #endif
-		sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp);
+
 		if (rename (buffer_tmp, buffer) == 0)
 		{
 			return 1;
@@ -1658,10 +1660,11 @@ xchat_set_plugin_pref (xchat_plugin *pl, char *var, char *value)
 		close (fhOut);
 
 		sprintf (buffer, "%s/%s", get_xdir_fs (), confname);
+		sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp);
+
 #ifdef WIN32
 		unlink (buffer);
 #endif
-		sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp);
 
 		if (rename (buffer_tmp, buffer) == 0)
 		{