summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-11-30 07:27:58 +0100
committerBerke Viktor <berkeviktor@aol.com>2011-11-30 07:27:58 +0100
commit2fac353c85ee186b7efa94af6552f676f717cc89 (patch)
tree2e6d4d7a977c5b725f9ab1c3e6512bd3d53c0be4 /src
parent845c4915bf51d4d670f527275b99c7423708bbfc (diff)
fix nasty ifdef bug
Diffstat (limited to 'src')
-rw-r--r--src/common/plugin.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/plugin.c b/src/common/plugin.c
index 45109ee2..1e930538 100644
--- a/src/common/plugin.c
+++ b/src/common/plugin.c
@@ -1612,11 +1612,10 @@ xchat_set_plugin_pref (xchat_plugin *pl, char *var, char *value)
 		write (fhOut, buffer, strlen (buffer));
 		close (fhOut);
 
-#ifdef WIN32
 		sprintf (buffer, "%s/%s", get_xdir_fs (), confname);
+#ifdef WIN32
 		unlink (buffer);
 #endif
-
 		sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp);
 		if (rename (buffer_tmp, buffer) == 0)
 		{
@@ -1658,11 +1657,10 @@ xchat_set_plugin_pref (xchat_plugin *pl, char *var, char *value)
 
 		close (fhOut);
 
-#ifdef WIN32
 		sprintf (buffer, "%s/%s", get_xdir_fs (), confname);
+#ifdef WIN32
 		unlink (buffer);
 #endif
-
 		sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp);
 
 		if (rename (buffer_tmp, buffer) == 0)