changeset 34896:139743f7e085

config_dir variable should not be static, but it should point to _const_ chars.
author reimar
date Sat, 02 Jun 2012 17:54:41 +0000
parents 3688864260e8
children 9f5d0eade1bd
files path.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/path.c	Sat Jun 02 16:35:44 2012 +0000
+++ b/path.c	Sat Jun 02 17:54:41 2012 +0000
@@ -48,9 +48,9 @@
 	char *homedir;
 	char *buff;
 #ifdef __MINGW32__
-	static char *config_dir = "/mplayer";
+	const char *config_dir = "/mplayer";
 #else
-	static char *config_dir = "/.mplayer";
+	const char *config_dir = "/.mplayer";
 #endif
 	int len;
 #ifdef CONFIG_MACOSX_BUNDLE