summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorJonathan Perkin <jonathan.perkin@oracle.com>2010-03-18 21:06:12 +0100
committerJonathan Perkin <jonathan.perkin@oracle.com>2010-03-18 21:06:12 +0100
commit7e852519d7eaabdac442b5ab5679de280f1c24ae (patch)
tree501506b5a0f53b4cd95ce7eb63c89889520f9db8 /mysys
parent87c99474919f3a17ced6841f22d48f815051248c (diff)
downloadmariadb-git-7e852519d7eaabdac442b5ab5679de280f1c24ae.tar.gz
Fixes from wlad
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mysys/my_init.c b/mysys/my_init.c
index a3e53fdaae1..e68a8b7a194 100644
--- a/mysys/my_init.c
+++ b/mysys/my_init.c
@@ -93,10 +93,6 @@ my_bool my_basic_init(void)
my_umask_dir= (int) (atoi_octal(str) | 0700);
#endif
- /* $HOME is needed early to parse configuration files located in ~/ */
- if ((home_dir= getenv("HOME")) != 0)
- home_dir= intern_filename(home_dir_buff, home_dir);
-
init_glob_errs();
instrumented_stdin.m_file= stdin;
@@ -122,6 +118,10 @@ my_bool my_basic_init(void)
return 1;
#endif
+ /* $HOME is needed early to parse configuration files located in ~/ */
+ if ((home_dir= getenv("HOME")) != 0)
+ home_dir= intern_filename(home_dir_buff, home_dir);
+
return 0;
}